[or-cvs] r14277: when add_file_log() fails, tell us why. (tor/trunk/src/or)
arma at seul.org
arma at seul.org
Tue Apr 1 21:05:33 UTC 2008
Author: arma
Date: 2008-04-01 17:05:31 -0400 (Tue, 01 Apr 2008)
New Revision: 14277
Modified:
tor/trunk/src/or/config.c
Log:
when add_file_log() fails, tell us why.
Modified: tor/trunk/src/or/config.c
===================================================================
--- tor/trunk/src/or/config.c 2008-04-01 17:23:52 UTC (rev 14276)
+++ tor/trunk/src/or/config.c 2008-04-01 21:05:31 UTC (rev 14277)
@@ -3902,7 +3902,8 @@
!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;
}
}
More information about the tor-commits
mailing list