changeset 222:b2a7ca398712

add dns resolver debugging
author Carl Byington <carl@five-ten-sg.com>
date Sun, 28 Dec 2008 08:34:14 -0800
parents 21037aa3aae5
children da9e7f1c8160
files src/dnsbl.cpp src/includes.h
diffstat 2 files changed, 5 insertions(+), 1 deletions(-) [+]
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;
--- a/src/includes.h	Sun Dec 28 08:12:55 2008 -0800
+++ b/src/includes.h	Sun Dec 28 08:34:14 2008 -0800
@@ -9,7 +9,7 @@
 #define VERIFY_DEBUG   1
 #define RESOLVER_DEBUG 1
 #undef	VERIFY_DEBUG
-#undef	RESOLVER_DEBUG
+//#undef	RESOLVER_DEBUG
 
 #ifdef HAVE_CONFIG_H
 	#include "config.h"