From ac27fe81f3b20720215afa98c424982aab5c39a4 Mon Sep 17 00:00:00 2001 From: DarkCat09 Date: Mon, 3 Jun 2024 09:04:06 +0400 Subject: [PATCH] Add debug logging env --- main.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main.py b/main.py index f726448..5433d7e 100644 --- a/main.py +++ b/main.py @@ -88,4 +88,7 @@ class TestHTTP(TestCase): if __name__ == '__main__': + import os + if os.getenv('DEBUG', '0') not in {'0', 'false'}: + logging.basicConfig(level=logging.DEBUG) unittest.main()