feat: configure logging based on DEBUG environment variable

This commit is contained in:
Tanner
2026-07-30 13:47:57 -06:00
committed by Tanner (aider)
parent 6ad5dd9de3
commit 1f0c658fff
+6 -1
View File
@@ -1,4 +1,9 @@
import os import os, logging
DEBUG = os.environ.get('DEBUG')
logging.basicConfig(
format='[%(asctime)s] %(levelname)s %(module)s/%(funcName)s - %(message)s',
level=logging.DEBUG if DEBUG else logging.INFO)
import sys import sys
import json import json
import socket import socket