aboutsummaryrefslogtreecommitdiff
path: root/src/or/dns.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2014-04-16 13:17:09 -0400
committerNick Mathewson <nickm@torproject.org>2014-04-16 22:03:09 -0400
commit156eefca454e10440d1070f7500e1708589fc64b (patch)
tree90aeb8d83340f1b4bedda195245ec5883f77fa27 /src/or/dns.c
parent8dc6755f6d65d7ff847bd5e8cf681e6de7fabbc5 (diff)
downloadtor-156eefca454e10440d1070f7500e1708589fc64b.tar.gz
tor-156eefca454e10440d1070f7500e1708589fc64b.zip
Make sure everything using an interned string is preceded by a log
(It's nice to know what we were about to rename before we died from renaming it.)
Diffstat (limited to 'src/or/dns.c')
-rw-r--r--src/or/dns.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/dns.c b/src/or/dns.c
index 21c82e8062..36271939b4 100644
--- a/src/or/dns.c
+++ b/src/or/dns.c
@@ -1480,6 +1480,7 @@ configure_nameservers(int force)
evdns_set_log_fn(evdns_log_cb);
if (conf_fname) {
+ log_debug(LD_FS, "stat()ing %s", conf_fname);
if (stat(sandbox_intern_string(conf_fname), &st)) {
log_warn(LD_EXIT, "Unable to stat resolver configuration in '%s': %s",
conf_fname, strerror(errno));
@@ -1497,6 +1498,7 @@ configure_nameservers(int force)
#if defined(DNS_OPTION_HOSTSFILE) && defined(USE_LIBSECCOMP)
if (flags & DNS_OPTION_HOSTSFILE) {
flags ^= DNS_OPTION_HOSTSFILE;
+ log_debug(LD_FS, "Loading /etc/hosts");
evdns_base_load_hosts(the_evdns_base,
sandbox_intern_string("/etc/hosts"));
}