hack: enable debug logging in tests

This commit is contained in:
James Woglom
2021-12-04 21:18:53 -05:00
parent 163db9807b
commit dbb1389254
+10
View File
@@ -0,0 +1,10 @@
# Hack to enable debug-level logging when running tests
# with `python3 -m unittest discover`
import sys
if 'unittest' in sys.modules:
import logging
logging.basicConfig(
level=logging.DEBUG,
format='%(asctime)s %(levelname)-8s %(message)s',
datefmt='%Y-%m-%d %H:%M:%S')