chore(backend): .warn -> .warning

This commit is contained in:
AAGaming
2024-09-01 14:17:11 -04:00
parent 016ed6e998
commit 6ae6f5ee67
6 changed files with 16 additions and 16 deletions
+2 -2
View File
@@ -106,7 +106,7 @@ class PluginManager:
new_time = time()
if (new_time - self.last_webhelper_exit < 60):
self.webhelper_crash_count += 1
logger.warn(f"webhelper crashed within a minute from last crash! crash count: {self.webhelper_crash_count}")
logger.warning(f"webhelper crashed within a minute from last crash! crash count: {self.webhelper_crash_count}")
else:
self.webhelper_crash_count = 0
self.last_webhelper_exit = new_time
@@ -147,7 +147,7 @@ class PluginManager:
pass
logger.debug(f"Task {task} finished")
except:
logger.warn(f"Failed to cancel task {task}:\n" + format_exc())
logger.warning(f"Failed to cancel task {task}:\n" + format_exc())
pass
if current:
tasks.remove(current)