commit 490d397dbf4e9edd4f37f5bef26d388da6ce06b3 Author: Sebastian Hahn sebastian@torproject.org Date: Thu Jan 27 15:31:34 2011 +0100
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. --- changes/bug2444 | 4 ++++ src/or/config.c | 2 ++ 2 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/changes/bug2444 b/changes/bug2444 new file mode 100644 index 0000000..405e8dc --- /dev/null +++ b/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. + diff --git a/src/or/config.c b/src/or/config.c index 8c1205d..54df65b 100644 --- a/src/or/config.c +++ b/src/or/config.c @@ -4028,6 +4028,8 @@ load_torrc_from_disk(int argc, char **argv) "Unable to open configuration file "%s".", fname); goto err; } + } else { + log(LOG_NOTICE, LD_CONFIG, "Read configuration file "%s".", fname); }
return cf;