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']
|
||||
except Exception as error:
|
||||
self._log.error(
|
||||
"Error translating '%s' from '%s' to '%s'",
|
||||
"Error translating '%s' from '%s' to '%s'. %s. Response content: %s",
|
||||
text,
|
||||
source_language,
|
||||
destination_language
|
||||
destination_language,
|
||||
error,
|
||||
response.content,
|
||||
)
|
||||
return translation
|
||||
|
||||
|
|
Loading…
Reference in a new issue