Add debug logging env

This commit is contained in:
DarkCat09 2024-06-03 09:04:06 +04:00
parent b4ab6a47d9
commit ac27fe81f3
Signed by: DarkCat09
GPG key ID: 0A26CD5B3345D6E3

View file

@ -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()