diff options
author | Nick Mathewson <nickm@torproject.org> | 2008-03-13 22:18:38 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2008-03-13 22:18:38 +0000 |
commit | 46155aca171796396449a55aa24888a9a7372ed6 (patch) | |
tree | 2499f5c7064bd7ddb03695a24e03c6b28304f177 /src/or/test.c | |
parent | d928e5685f1170d907a47ee95e35c9b92c28adef (diff) | |
download | tor-46155aca171796396449a55aa24888a9a7372ed6.tar.gz tor-46155aca171796396449a55aa24888a9a7372ed6.zip |
r18804@catbus: nickm | 2008-03-13 18:18:31 -0400
Refactor log domain mask code so that nobody outside of log.c has to use SEVERITY_MASK_IDX. It is error-prone.
svn:r14016
Diffstat (limited to 'src/or/test.c')
-rw-r--r-- | src/or/test.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/or/test.c b/src/or/test.c index 371d32309d..32e22cb754 100644 --- a/src/or/test.c +++ b/src/or/test.c @@ -3636,8 +3636,7 @@ main(int c, char**v) { log_severity_list_t *s = tor_malloc_zero(sizeof(log_severity_list_t)); - for (i = loglevel; i >= LOG_ERR; --i) - s->masks[SEVERITY_MASK_IDX(i)] = ~0u; + set_log_severity_config(loglevel, LOG_ERR, s); add_stream_log(s, "", stdout); } |