Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix logging statement in sql adapter #800

Merged
merged 1 commit into from
Jun 24, 2017
Merged

Fix logging statement in sql adapter #800

merged 1 commit into from
Jun 24, 2017

Conversation

gunthercox
Copy link
Owner

This pull request fixes a logging statement in the SQL adapter that was triggering errors. I've replaced it with an exception logging statement that has some useful functionality (It records the exception when the method is called within the scope of an except block.

Logger.exception(msg, *args, **kwargs)

Logs a message with level ERROR on this logger. The arguments are interpreted as for debug(). Exception info is added to the logging message. This method should only be called from an exception handler.

~ https://docs.python.org/3/library/logging.html#logging.Logger.exception

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant