add debug

This commit is contained in:
Antonio J. Delgado 2025-02-17 10:30:32 +02:00
parent faa411f02a
commit 699ea790fa

View file

@ -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