From: Roger Dingledine Date: Sat, 6 Nov 2004 07:40:20 +0000 (+0000) Subject: fix subtle bug that was causing logs to not show anything X-Git-Tag: debian-version-0.0.8+0.0.9pre5-1~86 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e2e6d19e76977d2a1dadad98f8527da2057d612d;p=thirdparty%2Ftor.git fix subtle bug that was causing logs to not show anything svn:r2695 --- diff --git a/src/or/config.c b/src/or/config.c index 98af9518ba..5b903eba66 100644 --- a/src/or/config.c +++ b/src/or/config.c @@ -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); goto cleanup; }