Pārlūkot izejas kodu

Put a platform string (e.g. "Linux i686") in the startup log
message, so when people paste just their logs, we know if it's
openbsd or windows or what.


svn:r9775

Roger Dingledine 18 gadi atpakaļ
vecāks
revīzija
fe94914b98
2 mainītis faili ar 5 papildinājumiem un 2 dzēšanām
  1. 3 0
      ChangeLog
  2. 2 2
      src/or/main.c

+ 3 - 0
ChangeLog

@@ -5,6 +5,9 @@ Changes in version 0.2.0.1-alpha - 2007-??-??
 
   o Minor features (logging):
     - Always prepend "Bug: " to any log message about a bug.
+    - Put a platform string (e.g. "Linux i686") in the startup log
+      message, so when people paste just their logs, we know if it's
+      openbsd or windows or what.
 
   o Minor features (other):
     - More unit tests.

+ 2 - 2
src/or/main.c

@@ -1602,8 +1602,8 @@ tor_init(int argc, char *argv[])
   /* give it somewhere to log to initially */
   add_temp_log();
 
-  log(LOG_NOTICE, LD_GENERAL, "Tor v%s. This is experimental software. "
-      "Do not rely on it for strong anonymity.",VERSION);
+  log(LOG_NOTICE, LD_GENERAL, "Tor v%s (%s). This is experimental software. "
+      "Do not rely on it for strong anonymity.",VERSION, get_uname());
 
   if (network_init()<0) {
     log_err(LD_BUG,"Error initializing network; exiting.");