]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Add a bufferevent note to startup log
authorSebastian Hahn <sebastian@torproject.org>
Mon, 29 Aug 2011 21:10:03 +0000 (23:10 +0200)
committerSebastian Hahn <sebastian@torproject.org>
Mon, 29 Aug 2011 21:10:03 +0000 (23:10 +0200)
This should help us easily spot if a tor was built with
--enable-bufferevent or not

src/or/main.c

index 260de167755bedf2683c437d3cb64ee2c59bfa51..ad06fed32120bd0025421a2f7294faf65b959d48 100644 (file)
@@ -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) {