This commit is contained in:
@ -1,7 +1,7 @@
|
||||
import logging.config
|
||||
import sys
|
||||
|
||||
import config.config
|
||||
from config import config
|
||||
|
||||
"""
|
||||
Usage:
|
||||
@ -66,5 +66,11 @@ logger = logging.getLogger('root')
|
||||
logger.info(log_config_message)
|
||||
|
||||
|
||||
def log(message: str):
|
||||
logger.info(f'{config.config.scheduler_name} {message}')
|
||||
def log(message: str) -> None:
|
||||
"""Helper wrapper to log a message prefixed with the scheduler name.
|
||||
|
||||
Kept small and typed to be a safe, low-risk refactor: it unifies how
|
||||
`config` is imported across the codebase (other modules use
|
||||
`from config import config`).
|
||||
"""
|
||||
logger.info(f'{config.scheduler_name} {message}')
|
||||
|
||||
Reference in New Issue
Block a user