diff options
author | Linus Nordberg <linus@nordu.net> | 2010-10-05 09:02:22 +0200 |
---|---|---|
committer | Linus Nordberg <linus@nordberg.se> | 2010-10-05 17:07:54 +0200 |
commit | 15c1b84f13b1b79ad99a97be1ac37dff809bee9a (patch) | |
tree | 6b3436402ff88839e3c10d04727e18bb79357b0f | |
parent | 10005137cb0511a7792fd4686e39b206f99fb8e0 (diff) |
Parameterize and disable libevent debug printouts.
-rw-r--r-- | lib/Makefile.am | 2 | ||||
-rw-r--r-- | lib/packet.c | 3 |
2 files changed, 4 insertions, 1 deletions
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: |