mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
chore: Update SCHEDULER.reload() to include custom log level if available
This commit is contained in:
parent
d71e4d5b75
commit
3a6bc6736f
1 changed files with 1 additions and 1 deletions
|
|
@ -733,7 +733,7 @@ if __name__ == "__main__":
|
|||
|
||||
if RUN_JOBS_ONCE:
|
||||
# Only run jobs once
|
||||
if not SCHEDULER.reload(env, changed_plugins=changed_plugins):
|
||||
if not SCHEDULER.reload(env | {"LOG_LEVEL": getenv("CUSTOM_LOG_LEVEL", env.get("LOG_LEVEL", "notice"))}, changed_plugins=changed_plugins):
|
||||
LOGGER.error("At least one job in run_once() failed")
|
||||
else:
|
||||
LOGGER.info("All jobs in run_once() were successful")
|
||||
|
|
|
|||
Loading…
Reference in a new issue