Update debugging messages.

This commit is contained in:
Sam Sykes
2025-11-11 17:50:06 +00:00
parent 0febfc62ec
commit 60bc77c795

View File

@@ -157,7 +157,7 @@ class SpeechmaticsTTSService(TTSService):
# Report error frame # Report error frame
yield ErrorFrame( yield ErrorFrame(
error=f"{self} HTTP 503 (attempt {attempt}, retry in {backoff_time:.2f}s)" error=f"{self} Service unavailable [503] (attempt {attempt}, retry in {backoff_time:.2f}s)"
) )
# Wait before retrying # Wait before retrying
@@ -171,14 +171,14 @@ class SpeechmaticsTTSService(TTSService):
except (ValueError, ArithmeticError): except (ValueError, ArithmeticError):
yield FatalErrorFrame( yield FatalErrorFrame(
error=f"{self} Service unavailable (attempts {attempt})" error=f"{self} Service unavailable [503] (attempts {attempt})"
) )
return return
# != 200 : Error # != 200 : Error
if response.status != 200: if response.status != 200:
yield FatalErrorFrame( yield FatalErrorFrame(
error=f"{self} Service unavailable ({response.status})" error=f"{self} Service unavailable [{response.status}]"
) )
return return