Skip to content

Commit 23c7c01

Browse files
committed
Fixed log for multi-line exceptions
1 parent 34b2efa commit 23c7c01

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/core/wopiutils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,8 @@ def facade(*args, **kwargs):
118118
def logGeneralExceptionAndReturn(ex, req):
119119
'''Convenience function to log a stack trace and return HTTP 500'''
120120
ex_type, ex_value, ex_traceback = sys.exc_info()
121-
log.critical('msg="Unexpected exception caught" exception="%s" type="%s" traceback="%s" client="%s" requestedUrl="%s"' %
122-
(ex, ex_type, traceback.format_exception(ex_type, ex_value, ex_traceback),
121+
log.critical('msg="Unexpected exception caught" type="%s" traceback="%s" client="%s" requestedUrl="%s"' %
122+
(ex_type, traceback.format_exception(ex_type, ex_value, ex_traceback),
123123
flask.request.headers.get(REALIPHEADER, flask.request.remote_addr), req.url))
124124
return 'Internal error, please contact support', http.client.INTERNAL_SERVER_ERROR
125125

0 commit comments

Comments
 (0)