From 267b2d980fc032df94f778808ebabd69dbf07ed0 Mon Sep 17 00:00:00 2001 From: Ruben van de Ven Date: Mon, 15 Apr 2019 21:35:38 +0200 Subject: [PATCH] More details in voice crash --- hugvey/voice.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hugvey/voice.py b/hugvey/voice.py index 11eba5f..bf528c4 100644 --- a/hugvey/voice.py +++ b/hugvey/voice.py @@ -107,6 +107,7 @@ class LyrebirdVoiceFetcher(VoiceFetcher): try: response = await http_client.fetch(request) except Exception as e: + logger.critical(f"Exception when getting Lyrebird voice file: POST {request.url} body: {request.body}") http_client.close() raise e @@ -169,6 +170,7 @@ class MSVoiceFetcher(VoiceFetcher): try: response = await http_client.fetch(request) except Exception as e: + logger.critical(f"Exception when getting Microsoft voice file: POST {request.url} body: {request.body}") http_client.close() raise e