Reorganize the project for better compatibility with unittests
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user