fix use of SetFELog with log_level="error" => level="danger"

This commit is contained in:
2024-01-21 18:17:45 +11:00
parent a3350b9316
commit 4db3d27cbc
3 changed files with 4 additions and 4 deletions

View File

@@ -137,7 +137,7 @@ def SettingsRBPath():
settings = Settings.query.first()
if settings == None:
from job import SetFELog
SetFELog( message="Cannot create file data with no settings / recycle bin path is missing", log_level="error", persistent=True, cant_close=False)
SetFELog( message="Cannot create file data with no settings / recycle bin path is missing", level="danger", persistent=True, cant_close=False)
return
# path setting is an absolute path, just use it, otherwise prepend base_path first
if settings.recycle_bin_path[0] == '/':
@@ -155,7 +155,7 @@ def SettingsSPath():
settings = Settings.query.first()
if settings == None:
from job import SetFELog
SetFELog( message="Cannot create file data with no settings / storage path is missing", log_level="error", persistent=True, cant_close=False)
SetFELog( message="Cannot create file data with no settings / storage path is missing", level="danger", persistent=True, cant_close=False)
return
if settings.storage_path[0] == '/':
path=settings.storage_path