diff options
author | Nick Mathewson <nickm@torproject.org> | 2004-05-19 21:40:44 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2004-05-19 21:40:44 +0000 |
commit | b8f535a2d8b94cea6e5222591fe3b9a28bdf87c0 (patch) | |
tree | 88c03c1f3b5345ff73477590e012b8d4e7888bd4 /src | |
parent | d95f347b1426dd6219aa8df7a1da635ecd913370 (diff) | |
download | tor-b8f535a2d8b94cea6e5222591fe3b9a28bdf87c0.tar.gz tor-b8f535a2d8b94cea6e5222591fe3b9a28bdf87c0.zip |
tor_assert, not assert. stdout, not stderr
svn:r1902
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 2910ec7a0d..7658550ce2 100644 --- a/src/or/config.c +++ b/src/or/config.c @@ -758,7 +758,7 @@ static void add_single_log(struct config_line_t *level_opt, log_fn(LOG_NOTICE, "Successfully opened LogFile '%s', redirecting output.", file_opt->value); } else if (!isDaemon) { - add_stream_log(levelMin, levelMax, "<stderr>", stderr); + add_stream_log(levelMin, levelMax, "<stdout>", stdout); } } @@ -789,7 +789,7 @@ void config_init_logs(or_options_t *options) log_fn(LOG_WARN, "Two LogLevel options in a row without intervening LogFile"); opt = opt->next; } else { - assert(!strcasecmp(opt->key, "LogFile")); + tor_assert(!strcasecmp(opt->key, "LogFile")); if (opt->next && !strcasecmp(opt->next->key, "LogLevel")) { /* LogFile followed by LogLevel */ add_single_log(opt->next, opt, options->RunAsDaemon); |