From cb59d39e6f81999d51eba0aee8e9a9dacd22fc35 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Wed, 2 Apr 2008 22:10:05 +0000 Subject: [PATCH] Merge r14277 and r14278: When opening a logfile fails, tell us why svn:r14282 --- ChangeLog | 1 + src/or/config.c | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index c5d52a4b05..0bfb56c957 100644 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,7 @@ Changes in version 0.2.0.24-?? - 2008-??-?? - Do not read the configuration file when we've only been told to generate a password hash. Fixes bug 643. Bugfix on 0.0.9pre5. Fix based on patch from Sebastian Hahn. + - When opening a logfile fails, tell us why. Changes in version 0.2.0.23-rc - 2008-03-24 o Major bugfixes: diff --git a/src/or/config.c b/src/or/config.c index 2b5153c0fa..11ba447055 100644 --- a/src/or/config.c +++ b/src/or/config.c @@ -3838,7 +3838,8 @@ options_init_logs(or_options_t *options, int validate_only) } if (!validate_only) { if (add_file_log(levelMin, levelMax, smartlist_get(elts, 2)) < 0) { - log_warn(LD_CONFIG, "Couldn't open file for 'Log %s'", opt->value); + log_warn(LD_CONFIG, "Couldn't open file for 'Log %s': %s", + opt->value, strerror(errno)); ok = 0; } }