[tor-commits] [ooni-probe/master] Add ooniprobe prefix to logs
art at torproject.org
art at torproject.org
Sun Nov 11 17:18:31 UTC 2012
commit bee2164106ad2a6e8be6b6334a2efe90d7521f84
Author: Arturo Filastò <art at fuffa.org>
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)
More information about the tor-commits
mailing list