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()