diff options
author | Roger Dingledine <arma@torproject.org> | 2006-10-23 10:16:43 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2006-10-23 10:16:43 +0000 |
commit | 77c8c0ee5158643960cbb6d3e30f11f3508f2481 (patch) | |
tree | 0601f95dd07db0afd9765a404fb1de8c2ab5917e /src/or/circuitbuild.c | |
parent | c0b0f96fce542d6cc0692eee525dfb7620dd036c (diff) | |
download | tor-77c8c0ee5158643960cbb6d3e30f11f3508f2481.tar.gz tor-77c8c0ee5158643960cbb6d3e30f11f3508f2481.zip |
spec and implement some more status events. start to build
some conventions.
svn:r8805
Diffstat (limited to 'src/or/circuitbuild.c')
-rw-r--r-- | src/or/circuitbuild.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/or/circuitbuild.c b/src/or/circuitbuild.c index 3b33bdfba7..3268d6d3ce 100644 --- a/src/or/circuitbuild.c +++ b/src/or/circuitbuild.c @@ -652,14 +652,14 @@ circuit_send_next_onion_skin(origin_circuit_t *circ) void circuit_note_clock_jumped(int seconds_elapsed) { - if (server_mode(get_options())) - log(LOG_WARN, LD_GENERAL, - "Please report: your clock just jumped %d seconds forward; " - "assuming established circuits no longer work.", seconds_elapsed); - else - log(LOG_NOTICE, LD_GENERAL, "Your clock just jumped %d seconds forward; " - "assuming established circuits no longer work.", seconds_elapsed); + int severity = server_mode(get_options()) ? LOG_WARN : LOG_NOTICE; + log(severity, LD_GENERAL, "Your clock just jumped %d seconds forward; " + "assuming established circuits no longer work.", seconds_elapsed); + control_event_general_status(LOG_WARN, "CLOCK_JUMPED TIME=%d", + seconds_elapsed); has_completed_circuit=0; /* so it'll log when it works again */ + control_event_client_status(severity, "CIRCUIT_NOT_ESTABLISHED REASON=%s", + "CLOCK_JUMPED"); circuit_mark_all_unused_circs(); circuit_expire_all_dirty_circs(); } |