调整
All checks were successful
Gitea Actions Demo / deploy (push) Successful in 30s

This commit is contained in:
konjacpotato
2025-11-14 21:58:36 +08:00
parent 52d5bbc216
commit ca39d1f891

View File

@ -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}')