add debug
This commit is contained in:
parent
faa411f02a
commit
699ea790fa
1 changed files with 4 additions and 2 deletions
|
@ -290,10 +290,12 @@ class MastodonEmailBridge:
|
||||||
translation = response.json()['translatedText']
|
translation = response.json()['translatedText']
|
||||||
except Exception as error:
|
except Exception as error:
|
||||||
self._log.error(
|
self._log.error(
|
||||||
"Error translating '%s' from '%s' to '%s'",
|
"Error translating '%s' from '%s' to '%s'. %s. Response content: %s",
|
||||||
text,
|
text,
|
||||||
source_language,
|
source_language,
|
||||||
destination_language
|
destination_language,
|
||||||
|
error,
|
||||||
|
response.content,
|
||||||
)
|
)
|
||||||
return translation
|
return translation
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue