Minor logging format fixes.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
3573671f8d
commit
7c0daf9873
1 changed files with 2 additions and 3 deletions
|
@ -21,7 +21,6 @@ class MediaKodiPlugin(MediaPlugin):
|
|||
Plugin to interact with a Kodi media player instance
|
||||
"""
|
||||
|
||||
# noinspection HttpUrlsUsage
|
||||
def __init__(
|
||||
self,
|
||||
rpc_url: str = 'http://localhost:8080/jsonrpc',
|
||||
|
@ -110,7 +109,7 @@ class MediaKodiPlugin(MediaPlugin):
|
|||
def _on_ws_msg(self):
|
||||
def hndl(*args):
|
||||
msg = args[1] if len(args) > 1 else args[0]
|
||||
self.logger.info("Received Kodi message: {}".format(msg))
|
||||
self.logger.info("Received Kodi message: %s", msg)
|
||||
msg = json.loads(msg)
|
||||
method = msg.get('method')
|
||||
|
||||
|
@ -151,7 +150,7 @@ class MediaKodiPlugin(MediaPlugin):
|
|||
def _on_ws_error(self):
|
||||
def hndl(*args):
|
||||
error = args[1] if len(args) > 1 else args[0]
|
||||
self.logger.warning("Kodi websocket connection error: {}".format(error))
|
||||
self.logger.warning("Kodi websocket connection error: %s", error)
|
||||
|
||||
return hndl
|
||||
|
||||
|
|
Loading…
Reference in a new issue