[or-cvs] r9247: - When the user uses bad syntax in the Log config line, stop (in tor/trunk: . src/or)

arma at seul.org arma at seul.org
Wed Jan 3 03:56:17 UTC 2007


Author: arma
Date: 2007-01-02 22:56:17 -0500 (Tue, 02 Jan 2007)
New Revision: 9247

Modified:
   tor/trunk/ChangeLog
   tor/trunk/src/or/config.c
Log:
- When the user uses bad syntax in the Log config line, stop
  suggesting other bad syntax as a replacement.


Modified: tor/trunk/ChangeLog
===================================================================
--- tor/trunk/ChangeLog	2007-01-03 03:45:53 UTC (rev 9246)
+++ tor/trunk/ChangeLog	2007-01-03 03:56:17 UTC (rev 9247)
@@ -132,6 +132,8 @@
       the nameserver is dead. (Also bug #326)
     - Directory authorities now only decide that routers are reachable
       if their identity keys are as expected.
+    - When the user uses bad syntax in the Log config line, stop
+      suggesting other bad syntax as a replacement.
 
   o Controller features:
     - Have GETINFO dir/status/* work on hosts with DirPort disabled.

Modified: tor/trunk/src/or/config.c
===================================================================
--- tor/trunk/src/or/config.c	2007-01-03 03:45:53 UTC (rev 9246)
+++ tor/trunk/src/or/config.c	2007-01-03 03:56:17 UTC (rev 9247)
@@ -3248,7 +3248,8 @@
                (const char*)smartlist_get(elts,1));
       if (strchr(smartlist_get(elts,1), '/') ||
           strchr(smartlist_get(elts,1), '\\')) {
-        log_warn(LD_CONFIG, "Did you mean to say 'Log file %s' ?",
+        log_warn(LD_CONFIG, "Did you mean to say 'Log %s file %s' ?",
+                 (const char *)smartlist_get(elts,0),
                  (const char *)smartlist_get(elts,1));
       }
       ok = 0; goto cleanup;



More information about the tor-commits mailing list