diff src/dnsbl.cpp @ 222:b2a7ca398712

add dns resolver debugging
author Carl Byington <carl@five-ten-sg.com>
date Sun, 28 Dec 2008 08:34:14 -0800
parents 495cfe5caead
children da9e7f1c8160
line wrap: on
line diff
--- a/src/dnsbl.cpp	Sun Dec 28 08:12:55 2008 -0800
+++ b/src/dnsbl.cpp	Sun Dec 28 08:34:14 2008 -0800
@@ -684,6 +684,10 @@
             }
         }
     pthread_mutex_unlock(&resolve_mutex);
+    #ifdef RESOLVER_DEBUG
+        snprintf(text, sizeof(text), "dns_interface() found ip %d", ret_address);
+        my_syslog(text);
+    #endif
     return ret_address;
 #else
     return glom.answer;