Log unexpected Exception using exception level

This commit is contained in:
Cédric Krier committed 2026-06-18 16:23:15 +02:00
1 parent 0138eb02b5
commit e525eeb1cd
1 file changed
+1 -2
+1 -2
View File
@@ -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: