[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] r14282: Merge r14277 and r14278: When opening a logfile fails, tell (in tor/branches/tor-0_2_0-patches: . src/or)



Author: weasel
Date: 2008-04-02 18:10:05 -0400 (Wed, 02 Apr 2008)
New Revision: 14282

Modified:
   tor/branches/tor-0_2_0-patches/ChangeLog
   tor/branches/tor-0_2_0-patches/src/or/config.c
Log:
Merge r14277 and r14278: When opening a logfile fails, tell us why

Modified: tor/branches/tor-0_2_0-patches/ChangeLog
===================================================================
--- tor/branches/tor-0_2_0-patches/ChangeLog	2008-04-02 20:48:36 UTC (rev 14281)
+++ tor/branches/tor-0_2_0-patches/ChangeLog	2008-04-02 22:10:05 UTC (rev 14282)
@@ -5,6 +5,7 @@
     - 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:

Modified: tor/branches/tor-0_2_0-patches/src/or/config.c
===================================================================
--- tor/branches/tor-0_2_0-patches/src/or/config.c	2008-04-02 20:48:36 UTC (rev 14281)
+++ tor/branches/tor-0_2_0-patches/src/or/config.c	2008-04-02 22:10:05 UTC (rev 14282)
@@ -3838,7 +3838,8 @@
       }
       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;
         }
       }