Parameterize and disable libevent debug printouts.
authorLinus Nordberg <linus@nordu.net>
Tue, 5 Oct 2010 07:02:22 +0000 (09:02 +0200)
committerLinus Nordberg <linus@nordu.net>
Tue, 5 Oct 2010 07:02:22 +0000 (09:02 +0200)
lib/Makefile.am
lib/packet.c

index 9acc2cb..7e3f392 100644 (file)
@@ -15,4 +15,4 @@ libradsec_la_SOURCES = \
        request.c \
        radsec.c
 libradsec_la_LDFLAGS = -version-info 0:0:0
-libradsec_la_CFLAGS = $(CFLAGS) -DDEBUG -DDEBUG_LEVENT
+libradsec_la_CFLAGS = $(CFLAGS) -DDEBUG #-DDEBUG_LEVENT
index 1f40766..1f20d50 100644 (file)
@@ -180,6 +180,9 @@ _evlog_cb (int severity, const char *msg)
   switch (severity)
     {
     case _EVENT_LOG_DEBUG:
+#if !defined (DEBUG_LEVENT)
+      return;
+#endif
       sevstr = "debug";
       break;
     case _EVENT_LOG_MSG: