diff options
author | Peter Palfrader <peter@palfrader.org> | 2008-03-27 17:25:49 +0000 |
---|---|---|
committer | Peter Palfrader <peter@palfrader.org> | 2008-03-27 17:25:49 +0000 |
commit | 9d132fbde6e776f2c4f18772deffa2a90faa7975 (patch) | |
tree | c7e07da3cbe92da81145ff482435238ee3b99ae0 /src/common/log.c | |
parent | 3bc512cfe2ad26870407d1365028aa5d1c40a73a (diff) | |
download | tor-9d132fbde6e776f2c4f18772deffa2a90faa7975.tar.gz tor-9d132fbde6e776f2c4f18772deffa2a90faa7975.zip |
Add --hush switch.
New --hush command-line option similar to --quiet. While --quiet disables all
logging to the console on startup, --hush limits the output to messages of
warning and error severity.
svn:r14222
Diffstat (limited to 'src/common/log.c')
-rw-r--r-- | src/common/log.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/log.c b/src/common/log.c index 0f59a93ac2..e49cc84116 100644 --- a/src/common/log.c +++ b/src/common/log.c @@ -535,10 +535,10 @@ init_logging(void) * logs are initialized). */ void -add_temp_log(void) +add_temp_log(int min_severity) { log_severity_list_t *s = tor_malloc_zero(sizeof(log_severity_list_t)); - set_log_severity_config(LOG_NOTICE, LOG_ERR, s); + set_log_severity_config(min_severity, LOG_ERR, s); LOCK_LOGS(); add_stream_log_impl(s, "<temp>", stdout); tor_free(s); |