Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
log missing country code at sub debug level
debug is `10`
  • Loading branch information
Kilo59 committed Apr 26, 2020
commit cb4bbc082f7d5e86a717dd5a08e6f89cde87a127
3 changes: 2 additions & 1 deletion app/utils/countries.py
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,7 @@ def country_code(value):
"""
code = COUNTRY_NAME__COUNTRY_CODE.get(value, DEFAULT_COUNTRY_CODE)
if code == DEFAULT_COUNTRY_CODE:
LOGGER.debug(f"No country code found for '{value}'. Using '{code}'!")
# log at sub DEBUG level
LOGGER.log(5, f"No country code found for '{value}'. Using '{code}'!")

return code