Skip to content

Commit

Permalink
squashed exceptions would cause a bug when logging the output
Browse files Browse the repository at this point in the history
fixes #319
  • Loading branch information
mmerickel committed Jul 1, 2017
1 parent d060f35 commit 50ea04c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyramid_debugtoolbar/toolbar.py
Expand Up @@ -252,7 +252,7 @@ def toolbar_tween(request):
subrequest = make_subrequest(
request, root_path, request.pdtb_id + '/exception')
exc_msg = msg % (request.url, subrequest.url)
_logger.exception(exc_msg, exc_info=request.exc_info)
_logger.error(exc_msg, exc_info=request.exc_info)

except Exception:
if intercept_exc:
Expand Down

0 comments on commit 50ea04c

Please sign in to comment.