mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-12-13 02:23:18 +00:00
Make log levels more appropriate and change warn to warnings
This commit is contained in:
parent
4c3732c517
commit
7bffbc98b5
12 changed files with 36 additions and 36 deletions
|
|
@ -327,7 +327,7 @@ class ConnectionManager(object):
|
|||
return self._test_next_connection_mode(tests, index + 1, server, options)
|
||||
else:
|
||||
if self._compare_versions(self._get_min_server_version(), result['Version']) == 1:
|
||||
LOG.warn("minServerVersion requirement not met. Server version: %s", result['Version'])
|
||||
LOG.warning("minServerVersion requirement not met. Server version: %s", result['Version'])
|
||||
return {
|
||||
'State': CONNECTION_STATE['ServerUpdateNeeded'],
|
||||
'Servers': [server]
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ class Credentials(object):
|
|||
raise ValueError("invalid credentials format")
|
||||
|
||||
except Exception as e: # File is either empty or missing
|
||||
LOG.warn(e)
|
||||
LOG.warning(e)
|
||||
self.credentials = {}
|
||||
|
||||
LOG.debug("credentials initialized with: %s", self.credentials)
|
||||
|
|
|
|||
|
|
@ -40,10 +40,10 @@ class HTTP(object):
|
|||
return
|
||||
|
||||
try:
|
||||
LOG.warn("--<[ session/%s ]", id(self.session))
|
||||
LOG.info("--<[ session/%s ]", id(self.session))
|
||||
self.session.close()
|
||||
except Exception as error:
|
||||
LOG.warn("The requests session could not be terminated: %s", error)
|
||||
LOG.warning("The requests session could not be terminated: %s", error)
|
||||
|
||||
def _replace_user_info(self, string):
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue