lower throttler log level to info (#1277)
authorOzGav <gavnosp@hotmail.com>
Tue, 7 May 2024 13:03:10 +0000 (23:03 +1000)
committerGitHub <noreply@github.com>
Tue, 7 May 2024 13:03:10 +0000 (15:03 +0200)
music_assistant/server/helpers/throttle_retry.py
music_assistant/server/providers/hass_players/manifest.json

index 9a1b86a38e9ddcdd6ffae46be65fe293c025a9ec..890e2523d09b23b23fc12c636988fe173147d83e 100644 (file)
@@ -44,9 +44,9 @@ class ThrottlerManager(Throttler):
             except ResourceTemporarilyUnavailable as e:
                 if e.backoff_time:
                     backoff_time = e.backoff_time
-                LOGGER.warning(f"Attempt {attempt + 1}/{self.retry_attempts} failed: {e}")
+                LOGGER.info(f"Attempt {attempt + 1}/{self.retry_attempts} failed: {e}")
                 if attempt < self.retry_attempts - 1:
-                    LOGGER.warning(f"Retrying in {backoff_time} seconds...")
+                    LOGGER.info(f"Retrying in {backoff_time} seconds...")
                     await asyncio.sleep(backoff_time)
                     backoff_time *= 2
         else:  # noqa: PLW0120
@@ -71,11 +71,11 @@ def throttle_with_retries(
                     return await func(self, *args, **kwargs)
                 except ResourceTemporarilyUnavailable as e:
                     backoff_time += e.backoff_time
-                    self.logger.warning(
+                    self.logger.info(
                         f"Attempt {attempt + 1}/{throttler.retry_attempts} failed: {e}"
                     )
                     if attempt < throttler.retry_attempts - 1:
-                        self.logger.warning(f"Retrying in {backoff_time} seconds...")
+                        self.logger.info(f"Retrying in {backoff_time} seconds...")
                         await asyncio.sleep(backoff_time)
                         backoff_time *= 2
             else:  # noqa: PLW0120
index fe1c3bcc940673fd6444aa63bcebc1ea176a5c84..30ab0068dc718c7e01172171a7ab65cc6255f070 100644 (file)
@@ -6,7 +6,7 @@
   "codeowners": [
     "@music-assistant"
   ],
-  "documentation": "",
+  "documentation": "https://music-assistant.io/player-support/ha/",
   "multi_instance": false,
   "builtin": false,
   "load_by_default": false,