[or-cvs] r14015: Fix behavior of switch_logs_debug() in trunk. Fixes bug 626. (in tor/trunk: . src/common)

nickm at seul.org nickm at seul.org
Thu Mar 13 22:18:36 UTC 2008


Author: nickm
Date: 2008-03-13 18:18:36 -0400 (Thu, 13 Mar 2008)
New Revision: 14015

Modified:
   tor/trunk/
   tor/trunk/src/common/log.c
Log:
 r18803 at catbus:  nickm | 2008-03-13 17:59:25 -0400
 Fix behavior of switch_logs_debug() in trunk.  Fixes bug 626. Bugfix on r13875.



Property changes on: tor/trunk
___________________________________________________________________
 svk:merge ticket from /tor/trunk [r18803] on 8246c3cf-6607-4228-993b-4d95d33730f1

Modified: tor/trunk/src/common/log.c
===================================================================
--- tor/trunk/src/common/log.c	2008-03-13 21:59:41 UTC (rev 14014)
+++ tor/trunk/src/common/log.c	2008-03-13 22:18:36 UTC (rev 14015)
@@ -872,7 +872,7 @@
   LOCK_LOGS();
   for (lf = logfiles; lf; lf=lf->next) {
     for (i = LOG_DEBUG; i >= LOG_ERR; --i)
-      lf->severities->masks[i] = ~0u;
+      lf->severities->masks[SEVERITY_MASK_IDX(i)] = ~0u;
   }
   UNLOCK_LOGS();
 }



More information about the tor-commits mailing list