Show HN: Django SQL Sniffer – monitor SQL executed by a running Python process (github.com) 4 points by gruuya 5y ago ↗ HN
[–] lpellis 5y ago ↗ Looks pretty cool, I've been using this logging setup that prints queries to the console, but it gets a bit verboseimport logging l = logging.getLogger('django.db.backends') l.setLevel(logging.DEBUG) l.addHandler(logging.StreamHandler())Does your solution work on windows? [–] gruuya 5y ago ↗ Thanks!The tool doesn't work on windows currently, but I'll prioritize adding support for it; I believe it should be a minor tweak.
[–] gruuya 5y ago ↗ Thanks!The tool doesn't work on windows currently, but I'll prioritize adding support for it; I believe it should be a minor tweak.
2 comments
[ 3.2 ms ] story [ 9.9 ms ] threadimport logging l = logging.getLogger('django.db.backends') l.setLevel(logging.DEBUG) l.addHandler(logging.StreamHandler())
Does your solution work on windows?
The tool doesn't work on windows currently, but I'll prioritize adding support for it; I believe it should be a minor tweak.