Browse Source

- When the user uses bad syntax in the Log config line, stop
suggesting other bad syntax as a replacement.


svn:r9247

Roger Dingledine 17 years ago
parent
commit
9545bbf57f
2 changed files with 4 additions and 1 deletions
  1. 2 0
      ChangeLog
  2. 2 1
      src/or/config.c

+ 2 - 0
ChangeLog

@@ -132,6 +132,8 @@ Changes in version 0.1.2.5-alpha - 2007-01-03
       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.

+ 2 - 1
src/or/config.c

@@ -3248,7 +3248,8 @@ options_init_logs(or_options_t *options, int validate_only)
                (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;