summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2003-10-15 18:50:16 +0000
committerRoger Dingledine <arma@torproject.org>2003-10-15 18:50:16 +0000
commit11a23fc280f5fc7a0d4af50ca73f87b96d2dab6f (patch)
tree426fd0842e9e7689245b3781513df1ff6257bad6 /src/common
parent695920d09fb405b04f6798a1f6b236cba9e08a5f (diff)
downloadtor-11a23fc280f5fc7a0d4af50ca73f87b96d2dab6f.tar.gz
tor-11a23fc280f5fc7a0d4af50ca73f87b96d2dab6f.zip
clean up logging, allow user to specify log files
If DebugLogFile is specified, log to it at -l debug If LogFile is specified, log to it at the -l from the commandline (default info) If no LogFile *and* not a Daemon, then log to stdout. Make conn->s = -1 by default (this might break things) When kill -USR1, prefer to log at INFO, but make sure they always see it. svn:r596
Diffstat (limited to 'src/common')
-rw-r--r--src/common/log.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/common/log.c b/src/common/log.c
index c66c430568..faa8f64891 100644
--- a/src/common/log.c
+++ b/src/common/log.c
@@ -75,11 +75,6 @@ logv(int severity, const char *funcname, const char *format, va_list ap)
assert(format);
if (severity < loglevel)
return;
- if (!logfiles) {
- /* XXX This is a temporary measure until we get configuration support
- for logfiles. */
- add_stream_log(loglevel, "<stdout>", stdout);
- }
for (lf = logfiles; lf; lf = lf->next) {
if (severity < lf->loglevel || severity > lf->max_loglevel)
continue;