Explorar o código

r18803@catbus: nickm | 2008-03-13 17:59:25 -0400
Fix behavior of switch_logs_debug() in trunk. Fixes bug 626. Bugfix on r13875.


svn:r14015

Nick Mathewson %!s(int64=16) %!d(string=hai) anos
pai
achega
d928e5685f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/common/log.c

+ 1 - 1
src/common/log.c

@@ -872,7 +872,7 @@ switch_logs_debug(void)
   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();
 }