diff options
author | Nick Mathewson <nickm@torproject.org> | 2005-10-18 22:56:40 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2005-10-18 22:56:40 +0000 |
commit | 1bd3f6cc9a98302c64be24036d89a1d12c16c5f8 (patch) | |
tree | 0cc1948f884e779aa9182f085c3c3c4fc20f66a9 /src/or/rephist.c | |
parent | 55f2ab9cc3c8f2422576f2354d88afdcd9a88e71 (diff) | |
download | tor-1bd3f6cc9a98302c64be24036d89a1d12c16c5f8.tar tor-1bd3f6cc9a98302c64be24036d89a1d12c16c5f8.tar.gz |
Update more files to new log stuff.
svn:r5286
Diffstat (limited to 'src/or/rephist.c')
-rw-r--r-- | src/or/rephist.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/or/rephist.c b/src/or/rephist.c index 62322d7d8..18de290a2 100644 --- a/src/or/rephist.c +++ b/src/or/rephist.c @@ -10,6 +10,7 @@ const char rephist_c_id[] = "$Id$"; * been using, which ports we tend to want, and so on. **/ +#define NEW_LOG_INTERFACE #include "or.h" static void bw_arrays_init(void); @@ -289,7 +290,7 @@ rep_hist_dump_stats(time_t now, int severity) rep_history_clean(now - get_options()->RephistTrackTime); - log(severity, "--------------- Dumping history information:"); + log(severity, LD_GENERAL, "--------------- Dumping history information:"); for (orhist_it = digestmap_iter_init(history_map); !digestmap_iter_done(orhist_it); orhist_it = digestmap_iter_next(history_map,orhist_it)) { @@ -309,7 +310,7 @@ rep_hist_dump_stats(time_t now, int severity) } else { uptime=1.0; } - log(severity, + log(severity, LD_GENERAL, "OR %s [%s]: %ld/%ld good connections; uptime %ld/%ld sec (%.2f%%)", name1, hexdigest1, or_history->n_conn_ok, or_history->n_conn_fail+or_history->n_conn_ok, @@ -337,7 +338,7 @@ rep_hist_dump_stats(time_t now, int severity) else len += ret; } - log(severity, "%s", buffer); + log(severity, LD_GENERAL, "%s", buffer); } } } @@ -715,7 +716,7 @@ rep_hist_get_predicted_ports(time_t now) tmp_time = smartlist_get(predicted_ports_times, i); if (*tmp_time + PREDICTED_CIRCS_RELEVANCE_TIME < now) { tmp_port = smartlist_get(predicted_ports_list, i); - log_fn(LOG_DEBUG, "Expiring predicted port %d", *tmp_port); + debug(LD_CIRC, "Expiring predicted port %d", *tmp_port); smartlist_del(predicted_ports_list, i); smartlist_del(predicted_ports_times, i); rephist_total_alloc -= sizeof(uint16_t)+sizeof(time_t); |