diff options
author | Roger Dingledine <arma@torproject.org> | 2008-04-01 21:05:31 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2008-04-01 21:05:31 +0000 |
commit | 39c402c29f750b25d041419cb945c7bd35db6eeb (patch) | |
tree | 90cbae49529776ee3cb117d5857d99f488089e8e /src | |
parent | 77c6ca9af39aceb295dcb0f75ee93ab740181ebf (diff) | |
download | tor-39c402c29f750b25d041419cb945c7bd35db6eeb.tar tor-39c402c29f750b25d041419cb945c7bd35db6eeb.tar.gz |
when add_file_log() fails, tell us why.
svn:r14277
Diffstat (limited to 'src')
-rw-r--r-- | src/or/config.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/config.c b/src/or/config.c index 0672342c2..bbe41fc02 100644 --- a/src/or/config.c +++ b/src/or/config.c @@ -3902,7 +3902,8 @@ options_init_logs(or_options_t *options, int validate_only) !strcasecmp(smartlist_get(elts,0), "file")) { if (!validate_only) { if (add_file_log(severity, smartlist_get(elts, 1)) < 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; } } |