projects
/
theonering
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e2b913d
)
Reformatting the log
author
Ed Page
<eopage@byu.net>
Wed, 17 Mar 2010 03:12:16 +0000
(22:12 -0500)
committer
Ed Page
<eopage@byu.net>
Wed, 17 Mar 2010 03:12:16 +0000
(22:12 -0500)
src/theonering.py
patch
|
blob
|
history
diff --git
a/src/theonering.py
b/src/theonering.py
index
da5d8a2
..
49a173f
100755
(executable)
--- a/
src/theonering.py
+++ b/
src/theonering.py
@@
-90,17
+90,18
@@
def main(logToFile):
raise
telepathy_utils.debug_divert_messages(os.getenv('THEONERING_LOGFILE'))
raise
telepathy_utils.debug_divert_messages(os.getenv('THEONERING_LOGFILE'))
+ logFormat = '(%(asctime)s) %(levelname)-5s %(threadName)s.%(name)s: %(message)s'
if logToFile:
logging.basicConfig(
level=logging.DEBUG,
filename=constants._user_logpath_,
if logToFile:
logging.basicConfig(
level=logging.DEBUG,
filename=constants._user_logpath_,
- format='(%(asctime)s) %(levelname)s:%(name)s:%(message)s',
+ format=logFormat,
datefmt='%H:%M:%S',
)
else:
logging.basicConfig(
level=logging.DEBUG,
datefmt='%H:%M:%S',
)
else:
logging.basicConfig(
level=logging.DEBUG,
- format='(%(asctime)s) %(levelname)s:%(name)s:%(message)s',
+ format=logFormat,
datefmt='%H:%M:%S',
)
logging.info("telepathy-theonering %s-%s" % (constants.__version__, constants.__build__))
datefmt='%H:%M:%S',
)
logging.info("telepathy-theonering %s-%s" % (constants.__version__, constants.__build__))