mirror of
https://github.com/akuker/RASCSI.git
synced 2024-06-01 19:41:48 +00:00
Change locale fallback to info logging
This commit is contained in:
parent
6514e24770
commit
aed793001d
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user