aboutsummaryrefslogtreecommitdiff
path: root/src/common/log.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2008-03-13 22:18:36 +0000
committerNick Mathewson <nickm@torproject.org>2008-03-13 22:18:36 +0000
commitd928e5685f1170d907a47ee95e35c9b92c28adef (patch)
treef8dcdafdabe906248b3400e9628e8de79125ee67 /src/common/log.c
parent0025a9796047d306953d1ae63d4ee82cbf24ff1c (diff)
downloadtor-d928e5685f1170d907a47ee95e35c9b92c28adef.tar.gz
tor-d928e5685f1170d907a47ee95e35c9b92c28adef.zip
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
Diffstat (limited to 'src/common/log.c')
-rw-r--r--src/common/log.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/log.c b/src/common/log.c
index e169a3f6cc..a823faa0b8 100644
--- a/src/common/log.c
+++ b/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();
}