]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
fix subtle bug that was causing logs to not show anything
authorRoger Dingledine <arma@torproject.org>
Sat, 6 Nov 2004 07:40:20 +0000 (07:40 +0000)
committerRoger Dingledine <arma@torproject.org>
Sat, 6 Nov 2004 07:40:20 +0000 (07:40 +0000)
svn:r2695

src/or/config.c

index 98af9518ba5c14f84e726527028dd73b5fa82683..5b903eba668fb18a22b2a5e68f27acaccdd90e1d 100644 (file)
@@ -1395,10 +1395,10 @@ config_init_logs(or_options_t *options)
       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;
     }