Created
July 25, 2015 16:37
-
-
Save mdfranz/973013130d3630aadcb7 to your computer and use it in GitHub Desktop.
Most Simple Way to Turn on Python ElasticSearch logging
This file contains 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
tracer = logging.getLogger('elasticsearch.trace') | |
tracer.setLevel(logging.DEBUG) | |
tracer.addHandler(logging.FileHandler('/tmp/es-client.log')) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment