aboutsummaryrefslogtreecommitdiff
path: root/src/or/config.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2004-05-20 08:15:28 +0000
committerRoger Dingledine <arma@torproject.org>2004-05-20 08:15:28 +0000
commit034110e761e5c2ac44357d128cea6b2380490548 (patch)
treec46c27b95a2dcfb51c3aaa98ff1d3123e599b366 /src/or/config.c
parentfaf2fdb1e0ddf2f2d0255a37224a1d9775f67d82 (diff)
downloadtor-034110e761e5c2ac44357d128cea6b2380490548.tar
tor-034110e761e5c2ac44357d128cea6b2380490548.tar.gz
bugfix: if no loglevel or logfile is specified, then we need to open
a default log to stdout. svn:r1909
Diffstat (limited to 'src/or/config.c')
-rw-r--r--src/or/config.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/or/config.c b/src/or/config.c
index 046a716ff..9afcc2a1e 100644
--- a/src/or/config.c
+++ b/src/or/config.c
@@ -774,6 +774,10 @@ void config_init_logs(or_options_t *options)
*/
struct config_line_t *opt = options->LogOptions;
+ /* Special case if nothing is specified. */
+ if(!opt)
+ add_single_log(NULL, NULL, options->RunAsDaemon);
+
/* Special case for if first option is LogLevel. */
if (opt && !strcasecmp(opt->key, "LogLevel")) {
if (opt->next && !strcasecmp(opt->next->key, "LogFile")) {