Don't output thread ID in log

The thread ID is not really useful and looks ugly. It also makes lines
longer than needed, there is more useful information we can put in the
log. So do away with it.

Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
This commit is contained in:
Sebastian Spaeth 2011-09-19 19:59:39 +02:00
parent 050bbb3d2d
commit 48fdb14418

View File

@ -104,11 +104,10 @@ class UIBase:
ui.error(exc, sys.exc_info()[2], msg="While syncing Folder %s in "
"repo %s")
"""
cur_thread = threading.currentThread()
if msg:
self._msg("ERROR [%s]: %s\n %s" % (cur_thread, msg, exc))
self._msg("ERROR: %s\n %s" % (msg, exc))
else:
self._msg("ERROR [%s]: %s" % (cur_thread, exc))
self._msg("ERROR: %s" % (exc))
if not self.debuglist:
# only output tracebacks in debug mode