aboutsummaryrefslogtreecommitdiff
path: root/src/or/config.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2006-02-11 21:56:03 +0000
committerNick Mathewson <nickm@torproject.org>2006-02-11 21:56:03 +0000
commitf1b91924b2aef4304c02c7178c486295d45065f1 (patch)
treedca9beb08e434358f190dfbd2cb07ad7ef8d7dce /src/or/config.c
parent165a9abee67deccba5b2d74a2165ad57f3933d3e (diff)
downloadtor-f1b91924b2aef4304c02c7178c486295d45065f1.tar
tor-f1b91924b2aef4304c02c7178c486295d45065f1.tar.gz
Keep running if we ask for an impossible stdout log; just warn.
svn:r5964
Diffstat (limited to 'src/or/config.c')
-rw-r--r--src/or/config.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/or/config.c b/src/or/config.c
index f177012d8..d97d8c4b7 100644
--- a/src/or/config.c
+++ b/src/or/config.c
@@ -2769,10 +2769,11 @@ options_init_logs(or_options_t *options, int validate_only)
if (smartlist_len(elts) < 2) { /* only loglevels were provided */
if (!validate_only) {
if (daemon) {
- warn(LD_CONFIG, "Can't log to stdout with RunAsDaemon set.");
- ok = 0; goto cleanup;
+ warn(LD_CONFIG,
+ "Can't log to stdout with RunAsDaemon set; skipping stdout");
+ } else {
+ add_stream_log(levelMin, levelMax, "<stdout>", stdout);
}
- add_stream_log(levelMin, levelMax, "<stdout>", stdout);
}
goto cleanup;
}