[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] fix subtle bug that was causing logs to not show anything
- To: or-cvs@freehaven.net
- Subject: [or-cvs] fix subtle bug that was causing logs to not show anything
- From: arma@seul.org (Roger Dingledine)
- Date: Sat, 6 Nov 2004 02:40:23 -0500 (EST)
- Delivered-to: archiver@seul.org
- Delivered-to: or-cvs-outgoing@seul.org
- Delivered-to: or-cvs@seul.org
- Delivery-date: Sat, 06 Nov 2004 02:40:40 -0500
- Reply-to: or-dev@freehaven.net
- Sender: owner-or-cvs@freehaven.net
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;
}