diff options
author | Peter Palfrader <peter@palfrader.org> | 2008-04-02 22:10:05 +0000 |
---|---|---|
committer | Peter Palfrader <peter@palfrader.org> | 2008-04-02 22:10:05 +0000 |
commit | cb59d39e6f81999d51eba0aee8e9a9dacd22fc35 (patch) | |
tree | a29e3981c0134a86cd3e402f43ae405abbacab57 | |
parent | f571799a673cdc0e46f66642d827d6dd8bc51aef (diff) | |
download | tor-cb59d39e6f81999d51eba0aee8e9a9dacd22fc35.tar.gz tor-cb59d39e6f81999d51eba0aee8e9a9dacd22fc35.zip |
Merge r14277 and r14278: When opening a logfile fails, tell us why
svn:r14282
-rw-r--r-- | ChangeLog | 1 | ||||
-rw-r--r-- | src/or/config.c | 3 |
2 files changed, 3 insertions, 1 deletions
@@ -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; } } |