diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/config/torrc.sample.in | 14 | ||||
-rw-r--r-- | src/or/config.c | 2 |
2 files changed, 7 insertions, 9 deletions
diff --git a/src/config/torrc.sample.in b/src/config/torrc.sample.in index 3becff3f44..a2b812d433 100644 --- a/src/config/torrc.sample.in +++ b/src/config/torrc.sample.in @@ -20,17 +20,15 @@ AllowUnverifiedNodes middle,rendezvous # Logs go to stdout unless redirected by something else, like one of # the below lines, or --logfile on the command line. ### Send all messages of level 'warn' or higher to @LOCALSTATEDIR@/log/tor/warnings -#LogFile @LOCALSTATEDIR@/log/tor/warnings -#LogLevel warn +#Log warn file @LOCALSTATEDIR@/log/tor/warnings ### Send all debug and info messages to @LOCALSTATEDIR@/log/tor/debug -#LogFile @LOCALSTATEDIR@/log/tor/debug -#LogLevel debug-info +#Log debug-info file @LOCALSTATEDIR@/log/tor/debug ### Send all debug messages ONLY to @LOCALSTATEDIR@/log/tor/debug -#LogFile @LOCALSTATEDIR@/log/tor/debug -#LogLevel debug-debug +#Log debug-debug file @LOCALSTATEDIR@/log/tor/debug ### To use the system log instead of Tor's logfiles, uncomment these lines: -#SysLog -#LogLevel notice +#Log notice syslog +### To send all messages to stderr: +#Log debug-err stderr # Uncomment this to start the process in the background... or use # --runasdaemon 1 on the command line. diff --git a/src/or/config.c b/src/or/config.c index 0bc71ebfa4..3ab114ab51 100644 --- a/src/or/config.c +++ b/src/or/config.c @@ -1231,7 +1231,7 @@ parse_log_severity_range(const char *range, int *min_out, int *max_out) "err|warn|notice|info|debug", range); return -1; } - levelMax = levelMin; + levelMax = LOG_ERR; } *min_out = levelMin; |