Skip to content

Commit cb4bbc0

Browse files
committed
log missing country code at sub debug level
debug is `10`
1 parent 27a0f1e commit cb4bbc0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/utils/countries.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,6 +374,7 @@ def country_code(value):
374374
"""
375375
code = COUNTRY_NAME__COUNTRY_CODE.get(value, DEFAULT_COUNTRY_CODE)
376376
if code == DEFAULT_COUNTRY_CODE:
377-
LOGGER.debug(f"No country code found for '{value}'. Using '{code}'!")
377+
# log at sub DEBUG level
378+
LOGGER.log(5, f"No country code found for '{value}'. Using '{code}'!")
378379

379380
return code

0 commit comments

Comments
 (0)