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/tools/tor-resolve.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/tools/tor-resolve.c')
-rw-r--r-- | src/tools/tor-resolve.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/tools/tor-resolve.c b/src/tools/tor-resolve.c index ab43719e62..fb4f13ff45 100644 --- a/src/tools/tor-resolve.c +++ b/src/tools/tor-resolve.c @@ -318,13 +318,10 @@ main(int argc, char **argv) usage(); } - s->masks[SEVERITY_MASK_IDX(LOG_ERR)] = ~0u; - s->masks[SEVERITY_MASK_IDX(LOG_WARN)] = ~0u; - if (isVerbose) { - s->masks[SEVERITY_MASK_IDX(LOG_NOTICE)] = ~0u; - s->masks[SEVERITY_MASK_IDX(LOG_INFO)] = ~0u; - s->masks[SEVERITY_MASK_IDX(LOG_DEBUG)] = ~0u; - } + if (isVerbose) + set_log_severity_config(LOG_DEBUG, LOG_ERR, s); + else + set_log_severity_config(LOG_WARN, LOG_ERR, s); add_stream_log(s, "<stderr>", stderr); if (n_args == 1) { |