Created
May 6, 2016 20:53
-
-
Save samstokes/1f7cda2fe6d0ae40229b3a5f938b8a9e to your computer and use it in GitHub Desktop.
Turning on SQL logging in SQLAlchemy
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import logging | |
logging.basicConfig() | |
logging.getLogger('sqlalchemy.engine').setLevel(logging.INFO) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment