set scheduler log level from env var

This commit is contained in:
deflax 2024-01-07 01:48:26 +02:00
parent 3ca3302bff
commit d6906ea14f

View file

@ -15,7 +15,7 @@ logger_api = logging.getLogger('waitress')
logger_api.setLevel(os.environ.get('SCHEDULER_LOG_LEVEL', 'INFO').upper())
logger_job = logging.getLogger('apscheduler')
logger_job.setLevel(logging.DEBUG)
logger_job.setLevel(os.environ.get('SCHEDULER_LOG_LEVEL', 'INFO').upper())
# Variables
CORE_SYNC_PERIOD = 30