]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
bugfix: if no loglevel or logfile is specified, then we need to open
authorRoger Dingledine <arma@torproject.org>
Thu, 20 May 2004 08:15:28 +0000 (08:15 +0000)
committerRoger Dingledine <arma@torproject.org>
Thu, 20 May 2004 08:15:28 +0000 (08:15 +0000)
a default log to stdout.

svn:r1909

src/or/config.c

index 046a716ffdb26e2c074332ea7e8251afb231770b..9afcc2a1e5e3d4c0349b0c521029e990cddf5dc8 100644 (file)
@@ -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")) {