Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CV2-2559: Bump debug to info #455

Merged
merged 1 commit into from
Sep 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions app/main/lib/langid.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,},
Expand All @@ -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},
Expand Down
Loading