Declare logger as a global variable explicitly for clarity

This commit is contained in:
Emma Nora Theuer 2024-12-28 00:21:27 +01:00
parent 369a377d70
commit 8eb0b84169

View file

@ -7,6 +7,7 @@ from datetime import datetime, time
from apscheduler.triggers.cron import CronTrigger
# Setup Logging. NOTE: Declaration as a global variable is necessary to ensure correct functionality across multiple modules.
global logger
logger = logging.getLogger("wallman")
class ConfigError(Exception):