[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor/master] Add a bufferevent note to startup log



commit b51e21c5d0193d05a965b3b5f7e1435300d23333
Author: Sebastian Hahn <sebastian@xxxxxxxxxxxxxx>
Date:   Mon Aug 29 23:10:03 2011 +0200

    Add a bufferevent note to startup log
    
    This should help us easily spot if a tor was built with
    --enable-bufferevent or not
---
 src/or/main.c |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/src/or/main.c b/src/or/main.c
index 260de16..ad06fed 100644
--- a/src/or/main.c
+++ b/src/or/main.c
@@ -2156,8 +2156,13 @@ tor_init(int argc, char *argv[])
   }
   quiet_level = quiet;
 
-  log(LOG_NOTICE, LD_GENERAL, "Tor v%s. This is experimental software. "
-      "Do not rely on it for strong anonymity. (Running on %s)",get_version(),
+  log(LOG_NOTICE, LD_GENERAL, "Tor v%s%s. This is experimental software. "
+      "Do not rely on it for strong anonymity. (Running on %s)", get_version(),
+#ifdef USE_BUFFEREVENTS
+      " (with bufferevents)",
+#else
+      "",
+#endif
       get_uname());
 
   if (network_init()<0) {

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits