summaryrefslogtreecommitdiff
path: root/lib/packet.c
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordu.net>2010-10-05 09:09:31 +0200
committerLinus Nordberg <linus@nordu.net>2010-10-05 09:09:31 +0200
commitfc96d63b356e425766f948f3726cd6f8d11c99d8 (patch)
treea9fe1ac0c5ca37963ea82e6f8338d2931de5ce64 /lib/packet.c
parent69188ac543de80db7b80f1ebeb551999be46e907 (diff)
Disable debug printouts.
Diffstat (limited to 'lib/packet.c')
-rw-r--r--lib/packet.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/packet.c b/lib/packet.c
index 1f20d50..54bfc01 100644
--- a/lib/packet.c
+++ b/lib/packet.c
@@ -172,7 +172,6 @@ _read_cb (struct bufferevent *bev, void *ctx)
assert (!"short packet");
}
-#if defined (DEBUG)
static void
_evlog_cb (int severity, const char *msg)
{
@@ -200,7 +199,6 @@ _evlog_cb (int severity, const char *msg)
}
fprintf (stderr, "libevent: [%s] %s\n", sevstr, msg);
}
-#endif /* DEBUG */
static int
_init_evb (struct rs_connection *conn)
@@ -209,8 +207,8 @@ _init_evb (struct rs_connection *conn)
{
#if defined (DEBUG)
event_enable_debug_mode ();
- event_set_log_callback (_evlog_cb);
#endif
+ event_set_log_callback (_evlog_cb);
conn->evb = event_base_new ();
if (!conn->evb)
return rs_err_conn_push_fl (conn, RSE_EVENT, __FILE__, __LINE__,