From 490d397dbf4e9edd4f37f5bef26d388da6ce06b3 Mon Sep 17 00:00:00 2001 From: Sebastian Hahn Date: Thu, 27 Jan 2011 15:31:34 +0100 Subject: [PATCH] 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(+) create mode 100644 changes/bug2444 diff --git a/changes/bug2444 b/changes/bug2444 new file mode 100644 index 0000000000..405e8dcb44 --- /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 8c1205de47..54df65b483 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;