summaryrefslogtreecommitdiff
path: root/common.c
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2015-04-11 21:12:56 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2015-04-11 21:12:56 +0200
commit245ff38498f53b5ad97414e7b24b4a0bb5de05f8 (patch)
tree4a7d70eaa0c72f2c83c5b292ace01b55f58f45e3 /common.c
parent4d4bdc1e6ab4fd380499876b8efd67b5823748d5 (diff)
downloadxK-245ff38498f53b5ad97414e7b24b4a0bb5de05f8.tar.gz
xK-245ff38498f53b5ad97414e7b24b4a0bb5de05f8.tar.xz
xK-245ff38498f53b5ad97414e7b24b4a0bb5de05f8.zip
Prepare for a custom logger in degesch
Diffstat (limited to 'common.c')
-rw-r--r--common.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/common.c b/common.c
index 288c127..759c452 100644
--- a/common.c
+++ b/common.c
@@ -22,11 +22,13 @@
#define LIBERTY_WANT_POLLER
#define LIBERTY_WANT_PROTO_IRC
-#define print_fatal_data ((void *) LOG_ERR)
-#define print_error_data ((void *) LOG_ERR)
-#define print_warning_data ((void *) LOG_WARNING)
-#define print_status_data ((void *) LOG_INFO)
-#define print_debug_data ((void *) LOG_DEBUG)
+#ifdef WANT_SYSLOG_LOGGING
+ #define print_fatal_data ((void *) LOG_ERR)
+ #define print_error_data ((void *) LOG_ERR)
+ #define print_warning_data ((void *) LOG_WARNING)
+ #define print_status_data ((void *) LOG_INFO)
+ #define print_debug_data ((void *) LOG_DEBUG)
+#endif // WANT_SYSLOG_LOGGING
#include "liberty/liberty.c"
#include <arpa/inet.h>