浏览代码

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 年之前
父节点
当前提交
d928e5685f
共有 1 个文件被更改,包括 1 次插入1 次删除
  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();
 }