From 2ab68139927f51394e5e99b6b8e41b3a3564a20d Mon Sep 17 00:00:00 2001 From: Abby Gourlay Date: Fri, 20 Mar 2020 23:43:17 +0000 Subject: [PATCH] Add logging messages --- jellyfin_kodi/jellyfin/connection_manager.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/jellyfin_kodi/jellyfin/connection_manager.py b/jellyfin_kodi/jellyfin/connection_manager.py index d99bc994..1d951b19 100644 --- a/jellyfin_kodi/jellyfin/connection_manager.py +++ b/jellyfin_kodi/jellyfin/connection_manager.py @@ -291,6 +291,7 @@ class ConnectionManager(object): url = urllib3.util.parse_url(address.strip()) # Default to using https + LOG.info("Attempting HTTPS connection") url = url._replace(scheme='https') # Test if server is reachable over https @@ -300,6 +301,7 @@ class ConnectionManager(object): else: # Server didn't give an expected response over https # Try http instead + LOG.info("HTTPS connection failed. Falling back to HTTP") url = url._replace(scheme='http') if url.port == 80: url = url._replace(port=None)