]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Update _log_global_min_severity after switch_logs_debug(), so that USR2 will work...
authorNick Mathewson <nickm@torproject.org>
Mon, 17 Nov 2008 19:58:51 +0000 (19:58 +0000)
committerNick Mathewson <nickm@torproject.org>
Mon, 17 Nov 2008 19:58:51 +0000 (19:58 +0000)
svn:r17317

ChangeLog
src/common/log.c

index b99d5ed06e3e93e3c1c301ab15cb5ef3366896fe..fda31b70349cac7196c1f1d5efb0e7abdf3da21b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -14,6 +14,8 @@ Changes in version 0.2.1.8-alpha - 2008-??-??
       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
index 15f8a1c3dfdc96b20bf6b73908f92d3982566789..58e53535a5b27395b245b79c137477694a60420a 100644 (file)
@@ -890,6 +890,7 @@ switch_logs_debug(void)
     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();
 }