Reorganize the project for better compatibility with unittests

This commit is contained in:
Roman Krček
2024-10-13 11:22:37 +02:00
parent 3c34c0f947
commit 725cf30319
5 changed files with 199 additions and 151 deletions

View File

@@ -1,4 +1,7 @@
import logging
import os
LOG_LEVEL = os.getenv("LOG_LEVEL")
def configure_logger(log_level: str) -> logging.Logger:
@@ -13,3 +16,6 @@ def configure_logger(log_level: str) -> logging.Logger:
)
return logging.getLogger()
log = configure_logger(LOG_LEVEL)