Add debug logging env
This commit is contained in:
parent
b4ab6a47d9
commit
ac27fe81f3
1 changed files with 3 additions and 0 deletions
3
main.py
3
main.py
|
@ -88,4 +88,7 @@ class TestHTTP(TestCase):
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
import os
|
||||||
|
if os.getenv('DEBUG', '0') not in {'0', 'false'}:
|
||||||
|
logging.basicConfig(level=logging.DEBUG)
|
||||||
unittest.main()
|
unittest.main()
|
||||||
|
|
Loading…
Add table
Reference in a new issue