Added env variable controlled log levels
This commit is contained in:
+2
-2
@@ -1,8 +1,8 @@
|
||||
import threading
|
||||
import logging
|
||||
import os
|
||||
|
||||
from core.server.server import startServer
|
||||
#from core.execution.lifecyclemanager.lifecycleregistry import registerLifecycle
|
||||
from core.execution.createthread import buildThread
|
||||
from plugins.rmass.monitors import rmassmonitor
|
||||
from plugins.rmass.actions import refresh_tokens
|
||||
@@ -11,7 +11,7 @@ from core.console import console
|
||||
from rich.logging import RichHandler
|
||||
|
||||
logging.basicConfig(
|
||||
level=logging.WARNING,
|
||||
level=os.environ.get("LOG_LEVEL", "WARNING").upper(),
|
||||
format="%(message)s",
|
||||
handlers=[
|
||||
RichHandler(
|
||||
|
||||
Reference in New Issue
Block a user