Skip to content

Instantly share code, notes, and snippets.

@samstokes
Created May 6, 2016 20:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save samstokes/1f7cda2fe6d0ae40229b3a5f938b8a9e to your computer and use it in GitHub Desktop.
Save samstokes/1f7cda2fe6d0ae40229b3a5f938b8a9e to your computer and use it in GitHub Desktop.
Turning on SQL logging in SQLAlchemy
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