From 6ae6f5ee67cbc7b0b7dbbebf7939d86ec4aa6722 Mon Sep 17 00:00:00 2001 From: AAGaming Date: Sun, 1 Sep 2024 14:17:11 -0400 Subject: chore(backend): .warn -> .warning --- backend/decky_loader/plugin/plugin.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'backend/decky_loader/plugin/plugin.py') diff --git a/backend/decky_loader/plugin/plugin.py b/backend/decky_loader/plugin/plugin.py index e22eca3f..cc950e8a 100644 --- a/backend/decky_loader/plugin/plugin.py +++ b/backend/decky_loader/plugin/plugin.py @@ -85,7 +85,7 @@ class PluginWrapper: async def execute_legacy_method(self, method_name: str, kwargs: Dict[Any, Any]): if not self.legacy_method_warning: self.legacy_method_warning = True - self.log.warn(f"Plugin {self.name} is using legacy method calls. This will be removed in a future release.") + self.log.warning(f"Plugin {self.name} is using legacy method calls. This will be removed in a future release.") if self.passive: raise RuntimeError("This plugin is passive (aka does not implement main.py)") @@ -144,10 +144,10 @@ class PluginWrapper: elapsed_time = time() - start_time if elapsed_time >= 5 and not sigtermed: sigtermed = True - self.log.warn(f"Plugin {self.name} still alive 5 seconds after stop request! Sending SIGTERM!") + self.log.warning(f"Plugin {self.name} still alive 5 seconds after stop request! Sending SIGTERM!") self.terminate() elif elapsed_time >= 10: - self.log.warn(f"Plugin {self.name} still alive 10 seconds after stop request! Sending SIGKILL!") + self.log.warning(f"Plugin {self.name} still alive 10 seconds after stop request! Sending SIGKILL!") self.terminate(True) await sleep(0.1) -- cgit v1.2.3