[gnome-music/wip/jfelder/scrobbler-fix-log-warning-calls] scrobbler: Fix some log messages



commit eae8f1224a930347383b9ce1a29d9db9d89ecfe2
Author: Jean Felder <jfelder src gnome org>
Date:   Tue Feb 4 12:42:00 2020 +0100

    scrobbler: Fix some log messages

 gnomemusic/scrobbler.py | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/gnomemusic/scrobbler.py b/gnomemusic/scrobbler.py
index 331b1ba0..ac3cc17f 100644
--- a/gnomemusic/scrobbler.py
+++ b/gnomemusic/scrobbler.py
@@ -133,7 +133,8 @@ class GoaLastFM(GObject.GObject):
             return self._authentication.call_get_access_token_sync(None)[0]
         except GLib.Error as e:
             self._log.warning(
-                "Error: Unable to retrieve last.fm session key", e.message)
+                "Error: Unable to retrieve last.fm session key: {}".format(
+                    e.message))
             return None
 
 
@@ -230,7 +231,8 @@ class LastFmScrobbler(GObject.GObject):
         sk = self._goa_lastfm.session_key
         if sk is None:
             self._log.warning(
-                "Error: Unable to perform last.fm api call", request_type_key)
+                "Error: Unable to perform last.fm api call {}".format(
+                    request_type_key))
             return
         secret = self._goa_lastfm.secret
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]