summaryrefslogtreecommitdiff
path: root/log.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2012-08-23 11:42:04 -0400
committerNick Mathewson <nickm@torproject.org>2012-08-23 11:42:04 -0400
commit3b3e21de5aa16fd87b9c2f55726a526cf80fc09e (patch)
treef38e451d3de7b3fe194c8357c2bac1fd7ac15aed /log.c
parent07e132e3adc898d0d3de46fa95e355ce9baf8468 (diff)
downloadlibevent-3b3e21de5aa16fd87b9c2f55726a526cf80fc09e.tar.gz
Add missing implementation for event_enable_debug_logging
Diffstat (limited to 'log.c')
-rw-r--r--log.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/log.c b/log.c
index 32e69d45..ded3fec3 100644
--- a/log.c
+++ b/log.c
@@ -84,6 +84,14 @@ event_debug_get_logging_mask_(void)
#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)
{
fatal_fn = cb;