Skip to content

Conversation

@brahmlower
Copy link
Contributor

Exceptions raised while calling a method in Request.process were being logged using just the logging utility, which relied on a logging handler being defined. In the event a logging handler is not defined and an exception is raised while calling a method, an error about the lack of a logging handler is raised, and the original exception is never logged.

This change makes use of the _log utility, which takes into account situations where a logging handler is not defined. In the scenario described before, a stacktrace of the initial error is logged as expected.

Exceptions raised while calling a method in Request.process were being logged using just the logging utiliy, which relied on a logging handler being defined. In the event a logging handler is not defined and an exception is raised while calling a method, an error about the lack of a logging handler is raised, and the original exception is never logged. This change makes use the _log utility, which takes into account situations where a logging handler is not defined. In the scenario described before, a stacktrace of the initial error is logged as expected.
@bcb bcb merged commit daf1647 into explodinglabs:master Sep 15, 2016
@bcb
Copy link
Member

bcb commented Sep 15, 2016

Good pickup, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants