add reload logging

This commit is contained in:
jxxghp
2025-06-23 10:14:22 +08:00
parent d2992f9ced
commit 1f44e13ff0
17 changed files with 17 additions and 0 deletions

View File

@@ -68,6 +68,7 @@ def enable_doh(enable: bool):
else:
socket.getaddrinfo = _orig_getaddrinfo
class DohHelper(metaclass=Singleton):
def __init__(self):
enable_doh(settings.DOH_ENABLE)

View File

@@ -32,6 +32,7 @@ class SystemHelper:
if event_data.key not in ['DEBUG', 'LOG_LEVEL', 'LOG_MAX_FILE_SIZE', 'LOG_BACKUP_COUNT',
'LOG_FILE_FORMAT', 'LOG_CONSOLE_FORMAT']:
return
logger.info("配置变更,更新日志设置...")
logger.update_loggers()
@staticmethod