mirror of
https://github.com/Casvt/MIND.git
synced 2026-02-19 11:54:46 -05:00
Fixed file clearing when LL goes debug to debug
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user