3 ms·
Looks pretty cool, I've been using this logging setup that prints queries to the console, but it gets a bit verbose import logging l = logging.getLogger('djang
by lpellis 6y ago
Looks pretty cool, I've been using this logging setup that prints queries to the console, but it gets a bit verbose
import logging
l = logging.getLogger('django.db.backends')
l.setLevel(logging.DEBUG)
l.addHandler(logging.StreamHandler())
Does your solution work on windows?
- gruuya 6y agoThanks! The tool doesn't work on windows currently, but I'll prioritize adding support for it; I believe it should be a minor tweak.