summaryrefslogtreecommitdiff
path: root/src/or/dns.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2006-08-28 03:15:38 +0000
committerNick Mathewson <nickm@torproject.org>2006-08-28 03:15:38 +0000
commitd62f9a03fb9030c3d7e36f79b5beb20b91884c33 (patch)
tree293031429530e179920d569848aaf9ca6f323cb3 /src/or/dns.c
parent30b8017005adb871f8f500916ab432e06f4d2d12 (diff)
downloadtor-d62f9a03fb9030c3d7e36f79b5beb20b91884c33.tar.gz
tor-d62f9a03fb9030c3d7e36f79b5beb20b91884c33.zip
r8605@Kushana: nickm | 2006-08-27 14:01:11 -0400
divide eventdns log messages into warn and info messages. svn:r8252
Diffstat (limited to 'src/or/dns.c')
-rw-r--r--src/or/dns.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/dns.c b/src/or/dns.c
index 3cffab4d8e..e2629b67fe 100644
--- a/src/or/dns.c
+++ b/src/or/dns.c
@@ -148,14 +148,14 @@ init_cache_map(void)
#ifdef USE_EVENTDNS
static void
-eventdns_log_cb(const char *msg)
+eventdns_log_cb(int warn, const char *msg)
{
if (!strcmpstart(msg, "Resolve requested for") &&
get_options()->SafeLogging) {
log(LOG_INFO, LD_EXIT, "eventdns: Resolve requested.");
return;
}
- log(LOG_INFO, LD_EXIT, "eventdns: %s", msg);
+ log(warn?LOG_WARN:LOG_INFO, LD_EXIT, "eventdns: %s", msg);
}
#endif