Update debugging messages.
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user