[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] r17318: {tor} Backport: Update _log_global_min_severity after switch_logs_ (in tor/branches/tor-0_2_0-patches: . src/common)
Author: nickm
Date: 2008-11-17 15:00:04 -0500 (Mon, 17 Nov 2008)
New Revision: 17318
Modified:
tor/branches/tor-0_2_0-patches/ChangeLog
tor/branches/tor-0_2_0-patches/src/common/log.c
Log:
Backport: 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/branches/tor-0_2_0-patches/ChangeLog
===================================================================
--- tor/branches/tor-0_2_0-patches/ChangeLog 2008-11-17 19:58:51 UTC (rev 17317)
+++ tor/branches/tor-0_2_0-patches/ChangeLog 2008-11-17 20:00:04 UTC (rev 17318)
@@ -50,6 +50,8 @@
list. It has been gone for many months.
- Stop doing unaligned memory access that generated bus errors on
sparc64. Bugfix on 0.2.0.10-alpha. Fix for bug 862.
+ - Make USR2 log-level switch take effect immediately. Bugfix on
+ 0.1.2.8-beta.
o Minor bugfixes (controller):
- Make DNS resolved events into "CLOSED", not "FAILED". Bugfix on
Modified: tor/branches/tor-0_2_0-patches/src/common/log.c
===================================================================
--- tor/branches/tor-0_2_0-patches/src/common/log.c 2008-11-17 19:58:51 UTC (rev 17317)
+++ tor/branches/tor-0_2_0-patches/src/common/log.c 2008-11-17 20:00:04 UTC (rev 17318)
@@ -701,6 +701,7 @@
for (lf = logfiles; lf; lf=lf->next) {
lf->min_loglevel = LOG_DEBUG;
}
+ _log_global_min_severity = get_min_log_level();
UNLOCK_LOGS();
}