mirror of
https://github.com/searxng/searxng.git
synced 2024-11-29 06:01:02 +00:00
[fix] logs: Proper member name mapping for ValidLogLevels
`_member_names_` is not part of the Enum documented public API, instead use `__members__`.
This commit is contained in:
parent
3c91f44cc6
commit
bf7d5cd432
1 changed files with 1 additions and 1 deletions
|
@ -40,7 +40,7 @@ LOG_FORMAT_DEBUG = '%(levelname)-7s %(name)-30.30s: %(message)s'
|
|||
LOG_FORMAT_PROD = '%(asctime)-15s %(levelname)s:%(name)s: %(message)s'
|
||||
|
||||
searx_loglevel = settings['general']['log_level']
|
||||
if searx_loglevel.upper() in ValidLogLevels._member_names_:
|
||||
if searx_loglevel.upper() in list(ValidLogLevels.__members__):
|
||||
LOG_LEVEL_PROD = ValidLogLevels[searx_loglevel.upper()].name
|
||||
else:
|
||||
LOG_LEVEL_PROD = logging.WARNING
|
||||
|
|
Loading…
Reference in a new issue