additional logging for navidrome troubleshooting connection status
This commit is contained in:
parent
2179483b95
commit
c6a7c99ad7
2 changed files with 5 additions and 5 deletions
|
|
@ -255,7 +255,7 @@ class DatabaseUpdateWorker(QThread):
|
|||
"""Get all artists from media server library"""
|
||||
try:
|
||||
if not self.media_client.ensure_connection():
|
||||
logger.error(f"Could not connect to {self.server_type} server")
|
||||
logger.error(f"Could not connect to {self.server_type} server — check URL, credentials, and network (Docker users: use container name or host.docker.internal instead of host IP)")
|
||||
return []
|
||||
|
||||
logger.info(f"🎯 _get_all_artists: Calling media_client.get_all_artists() for {self.server_type}")
|
||||
|
|
@ -271,7 +271,7 @@ class DatabaseUpdateWorker(QThread):
|
|||
"""Get artists that need processing for incremental update using smart early-stopping logic"""
|
||||
try:
|
||||
if not self.media_client.ensure_connection():
|
||||
logger.error(f"Could not connect to {self.server_type} server")
|
||||
logger.error(f"Could not connect to {self.server_type} server — check URL, credentials, and network (Docker users: use container name or host.docker.internal instead of host IP)")
|
||||
return []
|
||||
|
||||
# Check for music library (Plex-specific check)
|
||||
|
|
|
|||
|
|
@ -200,13 +200,13 @@ class NavidromeClient:
|
|||
server_version = response.get('version', 'Unknown')
|
||||
logger.info(f"Successfully connected to Navidrome server version: {server_version}")
|
||||
else:
|
||||
logger.error("Failed to connect to Navidrome server")
|
||||
logger.error(f"Failed to connect to Navidrome server at {self.base_url}/rest/ping — check URL and network connectivity")
|
||||
self.base_url = None
|
||||
self.username = None
|
||||
self.password = None
|
||||
|
||||
except Exception as e:
|
||||
logger.error(f"Failed to connect to Navidrome server: {e}")
|
||||
logger.error(f"Failed to connect to Navidrome server at {self.base_url}/rest/ping: {e}")
|
||||
self.base_url = None
|
||||
self.username = None
|
||||
self.password = None
|
||||
|
|
@ -259,7 +259,7 @@ class NavidromeClient:
|
|||
return subsonic_response
|
||||
|
||||
except requests.exceptions.RequestException as e:
|
||||
logger.error(f"Navidrome API request failed: {e}")
|
||||
logger.error(f"Navidrome API request failed for {url}: {e}")
|
||||
return None
|
||||
except json.JSONDecodeError as e:
|
||||
logger.error(f"Failed to parse Navidrome response: {e}")
|
||||
|
|
|
|||
Loading…
Reference in a new issue