summaryrefslogtreecommitdiff
path: root/src/or/hibernate.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2011-01-25 18:45:13 -0500
committerNick Mathewson <nickm@torproject.org>2011-01-25 18:45:13 -0500
commit5ce8182bdb45c41d8c5f9fea173c2ade1a18bfbb (patch)
tree0cfac6ed89127a96384a8ba81de7974d3a8fd0cf /src/or/hibernate.c
parent9e7691b05c77261290b10ef433bf377f02a98705 (diff)
downloadtor-5ce8182bdb45c41d8c5f9fea173c2ade1a18bfbb.tar.gz
tor-5ce8182bdb45c41d8c5f9fea173c2ade1a18bfbb.zip
Log more about soft-hibernation
Diffstat (limited to 'src/or/hibernate.c')
-rw-r--r--src/or/hibernate.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/or/hibernate.c b/src/or/hibernate.c
index 48a7ce75ba..1878d5d52d 100644
--- a/src/or/hibernate.c
+++ b/src/or/hibernate.c
@@ -783,7 +783,8 @@ hibernate_begin(hibernate_state_t new_state, time_t now)
/* XXX upload rendezvous service descriptors with no intro points */
if (new_state == HIBERNATE_STATE_EXITING) {
- log_notice(LD_GENERAL,"Interrupt: will shut down in %d seconds. Interrupt "
+ log_notice(LD_GENERAL,"Interrupt: we have stopped accepting new "
+ "connections, and will shut down in %d seconds. Interrupt "
"again to exit now.", options->ShutdownWaitLength);
shutdown_time = time(NULL) + options->ShutdownWaitLength;
} else { /* soft limit reached */
@@ -940,7 +941,8 @@ consider_hibernation(time_t now)
if (hibernate_state == HIBERNATE_STATE_LIVE) {
if (hibernate_soft_limit_reached()) {
log_notice(LD_ACCT,
- "Bandwidth soft limit reached; commencing hibernation.");
+ "Bandwidth soft limit reached; commencing hibernation. "
+ "No new conncetions will be accepted");
hibernate_begin(HIBERNATE_STATE_LOWBANDWIDTH, now);
} else if (accounting_enabled && now < interval_wakeup_time) {
format_local_iso_time(buf,interval_wakeup_time);