Declare logger as a global variable explicitly for clarity
This commit is contained in:
parent
369a377d70
commit
8eb0b84169
1 changed files with 1 additions and 0 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue