]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Keep temporary log in place while configuring logs
authorNick Mathewson <nickm@torproject.org>
Mon, 24 May 2004 02:28:15 +0000 (02:28 +0000)
committerNick Mathewson <nickm@torproject.org>
Mon, 24 May 2004 02:28:15 +0000 (02:28 +0000)
svn:r1919

src/or/main.c

index eb7a1a05fbb6d253e0d9e5be21c7d124f0d07fe7..be14c80d067f75c6bcf9814cd7f903549f42e59b 100644 (file)
@@ -564,11 +564,11 @@ static int init_from_config(int argc, char **argv) {
     start_daemon(options.DataDirectory);
   }
 
-  close_logs(); /* we'll close, then open with correct loglevel if necessary */
-
   /* Configure the log(s) */
   if (config_init_logs(&options)<0)
     return -1;
+  /* Close the temporary log we used while starting up, if it isn't already
+   * gone. */
   close_temp_logs();
 
   /* Set up our buckets */