Fixed file clearing when LL goes debug to debug

This commit is contained in:
CasVT
2024-03-06 17:27:40 +01:00
parent fe04f04b3c
commit b4682ea43b
2 changed files with 4 additions and 1 deletions

View File

@@ -115,6 +115,9 @@ def set_log_level(
clear_file (bool, optional): Empty the debug logging file.
Defaults to True.
"""
if LOGGER.level == level:
return
LOGGER.debug(f'Setting logging level: {level}')
LOGGER.setLevel(level)

View File

@@ -720,7 +720,7 @@ def api_admin_settings(inputs: Dict[str, Any]):
elif request.method == 'PUT':
LOGGER.info(f'Submitting admin settings: {inputs}')
hosting_changes = any(
inputs[s] is not None
for s in ('host', 'port', 'url_prefix')