From 77c0f6d456115d92a954457bdfcf6b04fff4d290 Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Sun, 11 Dec 2005 10:01:21 +0000 Subject: [PATCH] a first go at fixing a bug matt edman reported: when he tries to "setconf log" via the controller, it is friendly and gives him a log to stdout, even though he didn't ask for one. svn:r5562 --- src/or/config.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/or/config.c b/src/or/config.c index 1582aae1dd..22bfd35443 100644 --- a/src/or/config.c +++ b/src/or/config.c @@ -1806,8 +1806,8 @@ options_validate(or_options_t *old_options, or_options_t *options) if (normalize_log_options(options)) return -1; - /* Special case if no options are given. */ - if (!options->Logs) { + /* Special case on first boot if no Log options are given. */ + if (!old_options && !options->Logs) { config_line_append(&options->Logs, "Log", "notice stdout"); } -- 2.47.3