From 18b60427200890a0d02e840923c1d065d8cd8aa4 Mon Sep 17 00:00:00 2001 From: rdbende Date: Sat, 6 Jan 2024 17:34:02 +0100 Subject: [PATCH] Fix missed printf formatted log strings --- cozy/media/gst_player.py | 2 +- cozy/model/settings.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cozy/media/gst_player.py b/cozy/media/gst_player.py index fb41fa21..6d57d553 100644 --- a/cozy/media/gst_player.py +++ b/cozy/media/gst_player.py @@ -269,6 +269,6 @@ def _on_gst_message(self, _, message: Gst.Message): return reporter.error("player", f"{error.code}: {error}") - log.error(f"{error.code}: {error}") + log.error("%s: %s", error.code, error) log.debug(debug_msg) self.emit_event("error", error) diff --git a/cozy/model/settings.py b/cozy/model/settings.py index 08a557fd..c9202233 100644 --- a/cozy/model/settings.py +++ b/cozy/model/settings.py @@ -77,7 +77,7 @@ def _load_all_storage_locations(self): try: self._storages.append(Storage(self._db, storage_db_obj.id)) except InvalidPath: - log.error(f"Invalid path found in database, skipping: {storage_db_obj.path}") + log.error("Invalid path found in database, skipping: %s", storage_db_obj.path) self._ensure_default_storage_present()