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

[tor-commits] [ooni-probe/master] Add ooniprobe prefix to logs



commit bee2164106ad2a6e8be6b6334a2efe90d7521f84
Author: Arturo Filastò <art@xxxxxxxxx>
Date:   Sun Nov 11 13:50:21 2012 +0100

    Add ooniprobe prefix to logs
---
 ooni/utils/log.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/ooni/utils/log.py b/ooni/utils/log.py
index c05c776..743161f 100644
--- a/ooni/utils/log.py
+++ b/ooni/utils/log.py
@@ -13,7 +13,7 @@ from twisted.python.logfile import DailyLogFile
 from ooni.utils import otime
 from ooni import config
 
-def start(logfile=None, application_name="OONI"):
+def start(logfile=None, application_name="ooniprobe"):
     daily_logfile = None
 
     if not logfile:
@@ -27,7 +27,7 @@ def start(logfile=None, application_name="OONI"):
     txlog.msg("Starting %s on %s (%s UTC)" %  (application_name, otime.prettyDateNow(),
                                                  otime.utcPrettyDateNow()))
     logging.basicConfig()
-    python_logging = txlog.PythonLoggingObserver()
+    python_logging = txlog.PythonLoggingObserver(application_name)
 
     if config.advanced.debug:
         python_logging.logger.setLevel(logging.DEBUG)



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