Browse Source

Add a bufferevent note to startup log

This should help us easily spot if a tor was built with
--enable-bufferevent or not
Sebastian Hahn 14 years ago
parent
commit
b51e21c5d0
1 changed files with 7 additions and 2 deletions
  1. 7 2
      src/or/main.c

+ 7 - 2
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) {