Merge pull request #914 from akuker/rdmark-suppress-warning

Web UI: Change locale fallback message log level to 'info'
This commit is contained in:
Daniel Markstedt 2022-10-15 08:13:39 -07:00 committed by GitHub
commit afcb1534e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -150,7 +150,7 @@ def get_locale():
language = session["language"] language = session["language"]
except KeyError: except KeyError:
language = "" language = ""
logging.warning("The default locale could not be detected. Falling back to English.") logging.info("The default locale could not be detected. Falling back to English.")
if language: if language:
return language return language
# Hardcoded fallback to "en" when the user agent does not send an accept-language header # Hardcoded fallback to "en" when the user agent does not send an accept-language header