diff options
author | Nick Mathewson <nickm@torproject.org> | 2012-09-04 10:16:15 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2012-09-04 10:16:15 -0400 |
commit | 3da9a14f1c8b02215db1a14e31b6d5de4074998b (patch) | |
tree | 3104c9b0102e78d02ba275ab76d43bb7bf6e3d9b | |
parent | 978a2251f33416a95d5c2d8c8a844d1777d20429 (diff) | |
parent | e964f811437290ada91b62b44efb5caf7b491da4 (diff) | |
download | tor-3da9a14f1c8b02215db1a14e31b6d5de4074998b.tar.gz tor-3da9a14f1c8b02215db1a14e31b6d5de4074998b.zip |
Merge remote-tracking branch 'arma/feature6758'
-rw-r--r-- | changes/feature6758 | 5 | ||||
-rw-r--r-- | src/or/main.c | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/changes/feature6758 b/changes/feature6758 new file mode 100644 index 0000000000..049f05ea12 --- /dev/null +++ b/changes/feature6758 @@ -0,0 +1,5 @@ + o Minor features: + - Omit the first heartbeat log message, because it never has anything + useful to say, and it clutters up the bootstrapping messages. + Resolves ticket 6758. + diff --git a/src/or/main.c b/src/or/main.c index f3b781ec2f..f3624f6cfb 100644 --- a/src/or/main.c +++ b/src/or/main.c @@ -1562,7 +1562,8 @@ run_scheduled_events(time_t now) /** 12. write the heartbeat message */ if (options->HeartbeatPeriod && time_to_next_heartbeat <= now) { - log_heartbeat(now); + if (time_to_next_heartbeat) /* don't log the first heartbeat */ + log_heartbeat(now); time_to_next_heartbeat = now+options->HeartbeatPeriod; } } |