fix: add UNIFIED_TEST_LOG_LEVEL env var; default to WARNING

This commit is contained in:
Rajat Ahuja 2026-01-06 13:26:34 -05:00
parent cee5b92cae
commit 73a999e336
1 changed files with 4 additions and 2 deletions

View File

@ -45,9 +45,11 @@ from tests.unified.schema import (
WaitAction,
)
# Configure logging
# Override log level with UNIFIED_TEST_LOG_LEVEL env var if needed (e.g., INFO, DEBUG)
logging.basicConfig(
level=logging.INFO,
level=getattr(
logging, os.getenv("UNIFIED_TEST_LOG_LEVEL", "WARNING").upper(), logging.WARNING
),
format="%(asctime)s - %(levelname)s - %(message)s",
handlers=[logging.StreamHandler(sys.stdout)],
)