[or-cvs] tor_assert, not assert. stdout, not stderr

Nick Mathewson nickm at seul.org
Wed May 19 21:40:46 UTC 2004


Update of /home/or/cvsroot/src/or
In directory moria.mit.edu:/tmp/cvs-serv12504/src/or

Modified Files:
	config.c 
Log Message:
tor_assert, not assert. stdout, not stderr

Index: config.c
===================================================================
RCS file: /home/or/cvsroot/src/or/config.c,v
retrieving revision 1.114
retrieving revision 1.115
diff -u -d -r1.114 -r1.115
--- config.c	19 May 2004 20:07:08 -0000	1.114
+++ config.c	19 May 2004 21:40:44 -0000	1.115
@@ -758,7 +758,7 @@
     log_fn(LOG_NOTICE, "Successfully opened LogFile '%s', redirecting output.",
            file_opt->value);
   } else if (!isDaemon) {
-    add_stream_log(levelMin, levelMax, "<stderr>", stderr);
+    add_stream_log(levelMin, levelMax, "<stdout>", stdout);
   }
 }
 
@@ -789,7 +789,7 @@
       log_fn(LOG_WARN, "Two LogLevel options in a row without intervening LogFile");
       opt = opt->next;
     } else {
-      assert(!strcasecmp(opt->key, "LogFile"));
+      tor_assert(!strcasecmp(opt->key, "LogFile"));
       if (opt->next && !strcasecmp(opt->next->key, "LogLevel")) {
         /* LogFile followed by LogLevel */
         add_single_log(opt->next, opt, options->RunAsDaemon);



More information about the tor-commits mailing list