diff options
author | Azat Khuzhin <azat@libevent.org> | 2020-03-01 14:54:36 +0300 |
---|---|---|
committer | Azat Khuzhin <azat@libevent.org> | 2020-03-01 14:54:36 +0300 |
commit | a11edbfa369f7a99886359b3f4baa69686dc275f (patch) | |
tree | 4d2c50cb7766b3903ffedf18a6457cf99ed3f291 /test/test-time.c | |
parent | 5a5fe67ee86f780a94f3f154bc03756b7db1cd27 (diff) | |
download | libevent-a11edbfa369f7a99886359b3f4baa69686dc275f.tar.gz |
test-time: enable debug mode if EVENT_DEBUG_LOGGING_ALL env set
Diffstat (limited to 'test/test-time.c')
-rw-r--r-- | test/test-time.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/test-time.c b/test/test-time.c index c90f0f11..8d4bf7a4 100644 --- a/test/test-time.c +++ b/test/test-time.c @@ -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(); |