diff options
author | Nick Mathewson <nickm@torproject.org> | 2005-04-01 02:37:40 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2005-04-01 02:37:40 +0000 |
commit | efe9ca659a3d53b388124e2dd777d29e4914e1fb (patch) | |
tree | 9b61f8a09b38909d78536d4af118afe3ea718150 /src/or/config.c | |
parent | 837d7dff69c9844e40d9cdd440906e2dbe97106c (diff) | |
download | tor-efe9ca659a3d53b388124e2dd777d29e4914e1fb.tar.gz tor-efe9ca659a3d53b388124e2dd777d29e4914e1fb.zip |
Use recent libevent features when possible
svn:r3940
Diffstat (limited to 'src/or/config.c')
-rw-r--r-- | src/or/config.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/or/config.c b/src/or/config.c index eb48449380..3fc183aec4 100644 --- a/src/or/config.c +++ b/src/or/config.c @@ -269,7 +269,16 @@ options_act(void) { start_daemon(options->DataDirectory); } if (!libevent_initialized) { + configure_libevent_logging(); event_init(); +#if defined(HAVE_EVENT_GET_VERSION) && defined(HAVE_EVENT_GET_METHOD) + /* Making this a NOTICE for now so we can link bugs to a libevent versions + * or methods better. */ + log_fn(LOG_NOTICE, "Initialized libevent version %s using method %s", + event_get_version(), event_get_method()); +#else + log_fn(LOG_NOTICE, "Initialized old libevent (version 1.0b or earlier)"); +#endif libevent_initialized = 1; } |