[or-cvs] r17317: {tor} Update _log_global_min_severity after switch_logs_debug(), s (in tor/trunk: . src/common)

nickm at seul.org nickm at seul.org
Mon Nov 17 19:58:52 UTC 2008


Author: nickm
Date: 2008-11-17 14:58:51 -0500 (Mon, 17 Nov 2008)
New Revision: 17317

Modified:
   tor/trunk/ChangeLog
   tor/trunk/src/common/log.c
Log:
Update _log_global_min_severity after switch_logs_debug(), so that USR2 will work again.  Bugfix on 0.1.2.8-beta.  Spotted by Geoff Down.

Modified: tor/trunk/ChangeLog
===================================================================
--- tor/trunk/ChangeLog	2008-11-17 17:30:41 UTC (rev 17316)
+++ tor/trunk/ChangeLog	2008-11-17 19:58:51 UTC (rev 17317)
@@ -14,6 +14,8 @@
       sparc64.  Bugfix on 0.2.0.10-alpha.  Fix for bug 862.
     - Fix a crash bug when changing ExcludeNodes from the controller.  Bugfix
       on 0.2.1.6-alpha.  Fix for bug 867.  Patched by Sebastian.
+    - Make USR2 log-level switch take effect immediately.  Bugfix on
+      0.1.2.8-beta.
 
   o Minor features (controller):
     - Return circuit purposes in response to GETINFO circuit-status.  Fixes

Modified: tor/trunk/src/common/log.c
===================================================================
--- tor/trunk/src/common/log.c	2008-11-17 17:30:41 UTC (rev 17316)
+++ tor/trunk/src/common/log.c	2008-11-17 19:58:51 UTC (rev 17317)
@@ -890,6 +890,7 @@
     for (i = LOG_DEBUG; i >= LOG_ERR; --i)
       lf->severities->masks[SEVERITY_MASK_IDX(i)] = ~0u;
   }
+  _log_global_min_severity = get_min_log_level();
   UNLOCK_LOGS();
 }
 



More information about the tor-commits mailing list