mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
Refactor awawy unnecessary lambda to str.upper
This commit is contained in:
parent
ca200b1da7
commit
eff1406c09
@ -198,7 +198,7 @@ base_parser.add_argument('-c', '--config',
|
|||||||
'(use "-" for stdout)')
|
'(use "-" for stdout)')
|
||||||
|
|
||||||
base_parser.add_argument('-l', '--log-level',
|
base_parser.add_argument('-l', '--log-level',
|
||||||
type=lambda l: l.upper(), # case insensitive conversion
|
type=str.upper # convert to uppercase for comparison to choices
|
||||||
choices=['DEBUG', 'INFO', 'WARNING', 'ERROR', 'CRITICAL'],
|
choices=['DEBUG', 'INFO', 'WARNING', 'ERROR', 'CRITICAL'],
|
||||||
default='INFO',
|
default='INFO',
|
||||||
help='Log level')
|
help='Log level')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user