Quellcode durchsuchen

Log which config file we read

It is often not entirely clear what options Tor was built with, so it
might not be immediately obvious which config file Tor is using when it
found one. Log the config file at startup.
Sebastian Hahn vor 13 Jahren
Ursprung
Commit
490d397dbf
2 geänderte Dateien mit 6 neuen und 0 gelöschten Zeilen
  1. 4 0
      changes/bug2444
  2. 2 0
      src/or/config.c

+ 4 - 0
changes/bug2444

@@ -0,0 +1,4 @@
+  o Minor features:
+    - If we did find a configuration file, log a message saying where we found
+      it during startup. Implements ticket 2444.
+

+ 2 - 0
src/or/config.c

@@ -4028,6 +4028,8 @@ load_torrc_from_disk(int argc, char **argv)
           "Unable to open configuration file \"%s\".", fname);
           "Unable to open configuration file \"%s\".", fname);
       goto err;
       goto err;
     }
     }
+  } else {
+    log(LOG_NOTICE, LD_CONFIG, "Read configuration file \"%s\".", fname);
   }
   }
 
 
   return cf;
   return cf;