This commit is contained in:
@ -1,7 +1,7 @@
|
|||||||
import logging.config
|
import logging.config
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
import config.config
|
from config import config
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Usage:
|
Usage:
|
||||||
@ -66,5 +66,11 @@ logger = logging.getLogger('root')
|
|||||||
logger.info(log_config_message)
|
logger.info(log_config_message)
|
||||||
|
|
||||||
|
|
||||||
def log(message: str):
|
def log(message: str) -> None:
|
||||||
logger.info(f'{config.config.scheduler_name} {message}')
|
"""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