Some more logging to uncaught exceptions

This commit is contained in:
Ruud committed 2012-01-14 21:49:45 +01:00
1 parent f4a4bca7a9
commit e9094d4c6c
2 files changed
+10 -1

No files matched your search

+2 -1
View File
@@ -11,7 +11,8 @@ def runHandler(name, handler, *args, **kwargs):
try:
return handler(*args, **kwargs)
except:
log.error('Error in event "%s", that wasn\'nt caught: %s' % (name, traceback.format_exc()))
from couchpotato.environment import Env
log.error('Error in event "%s", that wasn\'nt caught: %s%s' % (name, traceback.format_exc(), Env.all()))
def addEvent(name, handler, priority = 100):