Skip to content

Commit

Permalink
chore: Add logging statement for successful connection to Plex server
Browse files Browse the repository at this point in the history
  • Loading branch information
Heavybullets8 committed May 8, 2024
1 parent 88788df commit 2cfc80d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ def connect_to_plex(url, token, max_retries=6):
for attempt in range(max_retries):
try:
plex = PlexServer(url, token)
return plex # Successfully connected, return the server object
logging.info("Succesfully connected to Plex")
return plex
except Exception as e:
if attempt < max_retries - 1:
logging.warning(f"Failed to connect to Plex server, retrying in {retry_delay} seconds...")
Expand Down

0 comments on commit 2cfc80d

Please sign in to comment.