]> granicus.if.org Git - libevent/commitdiff
Add missing implementation for event_enable_debug_logging
authorNick Mathewson <nickm@torproject.org>
Thu, 23 Aug 2012 15:42:04 +0000 (11:42 -0400)
committerNick Mathewson <nickm@torproject.org>
Thu, 23 Aug 2012 15:42:04 +0000 (11:42 -0400)
log.c

diff --git a/log.c b/log.c
index 32e69d45eadea9d189832f9298fe5f5f0136d815..ded3fec3dab123b6a5c9f36631ce2ecd63d09e23 100644 (file)
--- a/log.c
+++ b/log.c
@@ -83,6 +83,14 @@ event_debug_get_logging_mask_(void)
 #endif
 #endif /* EVENT_DEBUG_LOGGING_ENABLED */
 
+void
+event_enable_debug_logging(ev_uint32_t which)
+{
+#ifdef EVENT_DEBUG_LOGGING_ENABLED
+       event_debug_logging_mask_ = which;
+#endif
+}
+
 void
 event_set_fatal_callback(event_fatal_cb cb)
 {