summaryrefslogtreecommitdiff
path: root/src/common/log.c
diff options
context:
space:
mode:
authorPeter Palfrader <peter@palfrader.org>2008-03-27 17:25:49 +0000
committerPeter Palfrader <peter@palfrader.org>2008-03-27 17:25:49 +0000
commit9d132fbde6e776f2c4f18772deffa2a90faa7975 (patch)
treec7e07da3cbe92da81145ff482435238ee3b99ae0 /src/common/log.c
parent3bc512cfe2ad26870407d1365028aa5d1c40a73a (diff)
downloadtor-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.c4
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);