]> granicus.if.org Git - libevent/commitdiff
test-time: enable debug mode if EVENT_DEBUG_LOGGING_ALL env set
authorAzat Khuzhin <azat@libevent.org>
Sun, 1 Mar 2020 11:54:36 +0000 (14:54 +0300)
committerAzat Khuzhin <azat@libevent.org>
Sun, 1 Mar 2020 11:54:36 +0000 (14:54 +0300)
test/test-time.c

index c90f0f11237c7ac10d803ed574e5454e2111fa13..8d4bf7a4679eb714c3d963891da412cbc85fea87 100644 (file)
@@ -94,6 +94,10 @@ main(int argc, char **argv)
 
        evutil_weakrand_seed_(&weakrand_state, 0);
 
+       if (getenv("EVENT_DEBUG_LOGGING_ALL")) {
+               event_enable_debug_logging(EVENT_DBG_ALL);
+       }
+
        /* Initialize the event library */
        event_init();