From 6a74a5c09d34a106a1d366498003c1b199d154b9 Mon Sep 17 00:00:00 2001 From: computermacgyver Date: Mon, 30 Sep 2024 16:17:07 +0100 Subject: [PATCH] Bump debug to info --- app/main/lib/langid.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/main/lib/langid.py b/app/main/lib/langid.py index b6927ffd..4a060582 100644 --- a/app/main/lib/langid.py +++ b/app/main/lib/langid.py @@ -126,7 +126,7 @@ def langid(text): # Return the higher confidence result # if fasttext_result['result']['language'] != cld_result['result']['language']: # # Log when there is disagreement - # app.logger.debug(json.dumps({ + # app.logger.info(json.dumps({ # 'service':'LangId', # 'message': 'Disagreement between fasttext and cld. Returning higher confidence model', # 'parameters':{'text':text, 'fasttext':fasttext_result, 'cld':cld_result,}, @@ -138,7 +138,7 @@ def langid(text): else: # Fallback to Google when models disagree and neither has a high-confidence result google_result = GoogleLangidProvider.langid(text) - app.logger.debug(json.dumps({ + app.logger.info(json.dumps({ 'service':'LangId', 'message': 'Called Google after inconclusive local results', 'parameters':{'text':text, 'fasttext':fasttext_result, 'cld':cld_result, 'google':google_result},