[or-cvs] fix subtle bug that was causing logs to not show anything

Roger Dingledine arma at seul.org
Sat Nov 6 07:40:23 UTC 2004


Update of /home/or/cvsroot/src/or
In directory moria.mit.edu:/home2/arma/work/onion/cvs/src/or

Modified Files:
	config.c 
Log Message:
fix subtle bug that was causing logs to not show anything


Index: config.c
===================================================================
RCS file: /home/or/cvsroot/src/or/config.c,v
retrieving revision 1.210
retrieving revision 1.211
diff -u -d -r1.210 -r1.211
--- config.c	6 Nov 2004 06:56:27 -0000	1.210
+++ config.c	6 Nov 2004 07:40:20 -0000	1.211
@@ -1395,10 +1395,10 @@
       log_fn(LOG_WARN, "Bad syntax on Log option 'Log %s'", opt->value);
       ok = 0; goto cleanup;
     }
-    if (parse_log_severity_range(smartlist_get(elts,0), &levelMin, &levelMin)) {
+    if (parse_log_severity_range(smartlist_get(elts,0), &levelMin, &levelMax)) {
       ok = 0; goto cleanup;
     }
-    if (smartlist_len(elts) < 2) {
+    if (smartlist_len(elts) < 2) { /* only loglevels were provided */
       add_stream_log(levelMin, levelMax, "<stdout>", stdout);
       goto cleanup;
     }



More information about the tor-commits mailing list