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
This commit is contained in:
Roger Dingledine 2005-12-11 10:01:21 +00:00
parent 79f09b2f17
commit 77c0f6d456

View File

@ -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");
}