diff options
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) { |