diff options
| author | AAGaming <aagaming@riseup.net> | 2024-09-01 14:17:11 -0400 |
|---|---|---|
| committer | AAGaming <aagaming@riseup.net> | 2024-09-01 14:17:11 -0400 |
| commit | 6ae6f5ee67cbc7b0b7dbbebf7939d86ec4aa6722 (patch) | |
| tree | 687a921124258a0c3dcd61620d30c44e1ee2657e /backend/decky_loader/plugin | |
| parent | 016ed6e998de25c3a2d5caf119b4489c281b3ba5 (diff) | |
| download | decky-loader-6ae6f5ee67cbc7b0b7dbbebf7939d86ec4aa6722.tar.gz decky-loader-6ae6f5ee67cbc7b0b7dbbebf7939d86ec4aa6722.zip | |
chore(backend): .warn -> .warning
Diffstat (limited to 'backend/decky_loader/plugin')
| -rw-r--r-- | backend/decky_loader/plugin/plugin.py | 6 |
1 files changed, 3 insertions, 3 deletions
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) |
