From: Linus Nordberg Date: Tue, 5 Oct 2010 07:02:22 +0000 (+0200) Subject: Parameterize and disable libevent debug printouts. X-Git-Tag: libradsec-0.0.1~109 X-Git-Url: http://www.project-moonshot.org/gitweb/?a=commitdiff_plain;h=69188ac543de80db7b80f1ebeb551999be46e907;hp=49ff28d304aedf98ef21d2a8a8456ec738430c5c;p=radsecproxy.git Parameterize and disable libevent debug printouts. --- diff --git a/lib/Makefile.am b/lib/Makefile.am index 9acc2cb..7e3f392 100644 --- a/lib/Makefile.am +++ b/lib/Makefile.am @@ -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 diff --git a/lib/packet.c b/lib/packet.c index 1f40766..1f20d50 100644 --- a/lib/packet.c +++ b/lib/packet.c @@ -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: