Browse Source

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 16 years ago
parent
commit
d928e5685f
1 changed files with 1 additions and 1 deletions
  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();
 }