aboutsummaryrefslogtreecommitdiff
path: root/src/or/main.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2012-09-04 12:32:38 -0400
committerNick Mathewson <nickm@torproject.org>2012-09-06 11:31:22 -0400
commite3a130a7eb6e56a150c1902641efa5a7e0f62ad4 (patch)
treea8cb04cef651b3845fbe243f1fd9fab0e7e2af43 /src/or/main.c
parent485b4b7eee3bebf3f783d5d0d5d3c9cd8133f7f7 (diff)
downloadtor-e3a130a7eb6e56a150c1902641efa5a7e0f62ad4.tar
tor-e3a130a7eb6e56a150c1902641efa5a7e0f62ad4.tar.gz
Don't log about Libevent/OpenSSL initialization when all's well
OTOH, log the Libevent and OpenSSL versions on the first line when we're starting Tor.
Diffstat (limited to 'src/or/main.c')
-rw-r--r--src/or/main.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/or/main.c b/src/or/main.c
index f3624f6cf..5ddf7ba54 100644
--- a/src/or/main.c
+++ b/src/or/main.c
@@ -2304,12 +2304,16 @@ tor_init(int argc, char *argv[])
{
const char *version = get_version();
+ log_notice(LD_GENERAL, "Tor v%s %srunning on %s with Libevent %s "
+ "and OpenSSL %s.", version,
#ifdef USE_BUFFEREVENTS
- log_notice(LD_GENERAL, "Tor v%s (with bufferevents) running on %s.",
- version, get_uname());
+ "(with bufferevents) ",
#else
- log_notice(LD_GENERAL, "Tor v%s running on %s.", version, get_uname());
+ "",
#endif
+ get_uname(),
+ tor_libevent_get_version_str(),
+ crypto_openssl_get_version_str());
log_notice(LD_GENERAL, "Tor can't help you if you use it wrong! "
"Learn how to be safe at "