rewrite: Decrease debug logging.

This commit is contained in:
2022-11-30 16:57:58 +02:00
parent 5bd05a84a9
commit b4a14b801e

View File

@@ -81,7 +81,7 @@ class LeoBabel(Translator):
async def translate(self, string: locale_str, locale: Locale, context):
if locale.value in self.supported_locales:
domain = string.extras.get('domain', None)
if domain is None:
if domain is None and isinstance(string, LazyStr):
logger.debug(
f"LeoBabel cannot translate a locale_str with no domain set. Context: {context}, String: {string}"
)