aboutsummaryrefslogtreecommitdiffstats
path: root/src/evdns
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2009-12-22 01:32:18 +0300
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2009-12-22 01:32:18 +0300
commite413f4ee9cd298baab701df31ab4c1cb91c7c4b6 (patch)
tree46858bef680c8a09b6d1d58a5ca7e3a8cec4e62d /src/evdns
parenta079dac866ac4e166a8d6e40f978af74e8398583 (diff)
downloadrspamd-e413f4ee9cd298baab701df31ab4c1cb91c7c4b6.tar.gz
rspamd-e413f4ee9cd298baab701df31ab4c1cb91c7c4b6.zip
* Introduce new logging system:
- independent and customizeable buffering - line buffering - errors handling support - custom (ip based) debug - append function name automaticaly (based on __FUNCTION__) - add some logic to logs system
Diffstat (limited to 'src/evdns')
-rw-r--r--src/evdns/CMakeLists.txt1
-rw-r--r--src/evdns/evdns.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/evdns/CMakeLists.txt b/src/evdns/CMakeLists.txt
index 798ece9cc..338da91a9 100644
--- a/src/evdns/CMakeLists.txt
+++ b/src/evdns/CMakeLists.txt
@@ -2,3 +2,4 @@
SET(EVDNSSRC evdns.c)
ADD_LIBRARY(rspamd_evdns STATIC ${EVDNSSRC})
+SET_TARGET_PROPERTIES(rspamd_evdns PROPERTIES COMPILE_FLAGS "-DRSPAMD_LIB")
diff --git a/src/evdns/evdns.c b/src/evdns/evdns.c
index 4a8a7b650..e399a14a0 100644
--- a/src/evdns/evdns.c
+++ b/src/evdns/evdns.c
@@ -2307,7 +2307,7 @@ out2:
CLOSE_SOCKET(ns->socket);
out1:
g_free(ns);
- msg_warn("Unable to add nameserver %s: error %d", debug_ntop(address), err);
+ msg_warn("error %d", debug_ntop(address), err);
return err;
}