Log unexpected Exception using exception level
This commit is contained in:
1 parent
0138eb02b5
commit
e525eeb1cd
1 file changed
+1
-2
@@ -132,8 +132,7 @@ class TrytondWSGI(object):
|
||||
"Exception when processing %s", request, exc_info=True)
|
||||
return exceptions.ServiceUnavailable(description=str(e))
|
||||
except Exception as e:
|
||||
logger.debug(
|
||||
"Exception when processing %s", request, exc_info=True)
|
||||
logger.exception("Exception when processing %s", request)
|
||||
if self.dev:
|
||||
tb_s = ''.join(traceback.format_exception(*sys.exc_info()))
|
||||
for path in sys.path:
|
||||
|
||||
Reference in new issue
Block a user