diff options
author | Roger Dingledine <arma@torproject.org> | 2004-11-06 07:40:20 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2004-11-06 07:40:20 +0000 |
commit | e2e6d19e76977d2a1dadad98f8527da2057d612d (patch) | |
tree | 4fa5dc30586f5b91a1f8e92325d27c2d881d3b18 /src | |
parent | 28a297ebe7058308922812adc9d874ef4c7aa630 (diff) | |
download | tor-e2e6d19e76977d2a1dadad98f8527da2057d612d.tar tor-e2e6d19e76977d2a1dadad98f8527da2057d612d.tar.gz |
fix subtle bug that was causing logs to not show anything
svn:r2695
Diffstat (limited to 'src')
-rw-r--r-- | src/or/config.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/config.c b/src/or/config.c index 98af9518b..5b903eba6 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>", stdout); goto cleanup; } |