[pkg-fso-commits] [SCM] FSO frameworkd Debian packaging branch, debian, updated. upstream/0.9.5.5-717-g0f98819
Michael 'Mickey' Lauer
mickey at vanille-media.de
Sat Aug 6 08:20:14 UTC 2011
The following commit has been merged in the debian branch:
commit 3cc975f89c880e37819ecec20c79ce080ed2c4a6
Author: Michael 'Mickey' Lauer <mickey at vanille-media.de>
Date: Thu Dec 30 15:52:48 2010 +0100
config: align milliseconds in logger output; patch by ott814, thanks.
diff --git a/framework/config.py b/framework/config.py
index d297da1..932d4a8 100644
--- a/framework/config.py
+++ b/framework/config.py
@@ -2,7 +2,7 @@
"""
freesmartphone.org Framework Daemon
-(C) 2008 Michael 'Mickey' Lauer <mlauer at vanille-media.de>
+(C) 2008-2010 Michael 'Mickey' Lauer <mlauer at vanille-media.de>
(C) 2008 Openmoko, Inc.
GPLv2 or later
@@ -84,10 +84,10 @@ for handler in rootlogger.handlers:
# now that we are clean, setup our actual handler and configure formatter
if debugto == "stderr":
handler = logging.StreamHandler() # default=stderr
- handler.setFormatter( logging.Formatter( "%(asctime)s.%(msecs)d %(name)-20s %(levelname)-8s %(message)s", datefmt="%Y.%m.%d %H:%M:%S" ) )
+ handler.setFormatter( logging.Formatter( "%(asctime)s.%(msecs)03d %(name)-20s %(levelname)-8s %(message)s", datefmt="%Y.%m.%d %H:%M:%S" ) )
elif debugto == "file":
handler = logging.FileHandler( debugdest )
- handler.setFormatter( logging.Formatter( "%(asctime)s.%(msecs)d %(name)-20s %(levelname)-8s %(message)s", datefmt="%Y.%m.%d %H:%M:%S" ) )
+ handler.setFormatter( logging.Formatter( "%(asctime)s.%(msecs)03d %(name)-20s %(levelname)-8s %(message)s", datefmt="%Y.%m.%d %H:%M:%S" ) )
elif debugto == "syslog":
handler = logging.handlers.SysLogHandler( address = "/dev/log" )
# timestamps are not needed with syslog
--
FSO frameworkd Debian packaging
More information about the pkg-fso-commits
mailing list