diff options
author | Kevin Butler <haqkrs@gmail.com> | 2013-09-01 17:38:01 +0100 |
---|---|---|
committer | Kevin Butler <haqkrs@gmail.com> | 2013-09-01 17:38:01 +0100 |
commit | 6e17fa6d7ba57b990dd929e07969d35dc82fc46b (patch) | |
tree | cb6d7b7e79941df0dec6b7379821c6e8f2cbebe8 /src/or/main.c | |
parent | 00bcc25d05dc0273323a2cae20c6aa62afd4b50a (diff) | |
download | tor-6e17fa6d7ba57b990dd929e07969d35dc82fc46b.tar.gz tor-6e17fa6d7ba57b990dd929e07969d35dc82fc46b.zip |
Added --library-versions flag to print the compile time and runtime versions of libevent, openssl and zlib. Partially implements #6384.
Diffstat (limited to 'src/or/main.c')
-rw-r--r-- | src/or/main.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/or/main.c b/src/or/main.c index 33e1c6437f..2d6ca74d8d 100644 --- a/src/or/main.c +++ b/src/or/main.c @@ -2343,6 +2343,8 @@ tor_init(int argc, char *argv[]) /* --version implies --quiet */ if (!strcmp(argv[i], "--version")) quiet = 2; + if (!strcmp(argv[i], "--library-versions")) + quiet = 2; } /* give it somewhere to log to initially */ switch (quiet) { @@ -2365,11 +2367,12 @@ tor_init(int argc, char *argv[]) #else ""; #endif - log_notice(LD_GENERAL, "Tor v%s %srunning on %s with Libevent %s " - "and OpenSSL %s.", version, bev_str, + log_notice(LD_GENERAL, "Tor v%s %srunning on %s with Libevent %s, " + "OpenSSL %s and Zlib %s.", version, bev_str, get_uname(), tor_libevent_get_version_str(), - crypto_openssl_get_version_str()); + crypto_openssl_get_version_str(), + tor_zlib_get_version_str()); log_notice(LD_GENERAL, "Tor can't help you if you use it wrong! " "Learn how to be safe at " |