From 7275ea9b0b9e74e9f8c8f8cd95e0a2ef2a4cc125 Mon Sep 17 00:00:00 2001 From: Julio Biason Date: Sun, 4 Apr 2010 09:47:24 -0300 Subject: [PATCH] Still trying to improve this debug message, 'cause catching unexpected things is quite hard at this point. --- mitterlib/ui/helpers/gtk_threading.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mitterlib/ui/helpers/gtk_threading.py b/mitterlib/ui/helpers/gtk_threading.py index 08c803d..d304315 100644 --- a/mitterlib/ui/helpers/gtk_threading.py +++ b/mitterlib/ui/helpers/gtk_threading.py @@ -60,7 +60,8 @@ class _WorkerThread(threading.Thread, _IdleObject): result = self._function(*args, **kwargs) except Exception, exc: # Catch ALL exceptions # TODO: Check if this catch all warnins too! - _log.debug('Exception inside thread: %s', str(exc)) + _log.debug('Exception inside thread %s:\n%s', + self.getName(), str(exc)) self.emit("exception", exc) return