Validate rate_limit_except_level by choices
... to reject invalid values with explicit errors. Change-Id: I04d10bb977c4ebdaed7b5a2d159ae9c10897679b
This commit is contained in:
parent
a1fe1b9cfb
commit
42639aaac4
@ -203,8 +203,8 @@ log_opts = [
|
||||
'rate_limit_interval.'),
|
||||
cfg.StrOpt('rate_limit_except_level',
|
||||
default='CRITICAL',
|
||||
help='Log level name used by rate limiting: CRITICAL, ERROR, '
|
||||
'INFO, WARNING, DEBUG or empty string. Logs with level '
|
||||
choices=['CRITICAL', 'ERROR', 'INFO', 'WARNING', 'DEBUG', ''],
|
||||
help='Log level name used by rate limiting. Logs with level '
|
||||
'greater or equal to rate_limit_except_level are not '
|
||||
'filtered. An empty string means that all levels are '
|
||||
'filtered.'),
|
||||
|
Loading…
Reference in New Issue
Block a user