test_l3.py : updated log level

Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
This commit is contained in:
Chuck SmileyRekiere
2022-05-24 10:44:51 -06:00
committed by shivam
parent 2260cf04c3
commit 8444d8fad8

View File

@@ -1619,8 +1619,11 @@ Setting wifi_settings per radio
default="BE") default="BE")
parser.add_argument( parser.add_argument(
'--debug', '--debug',
help='--debug flag present debug on enable debugging', help='--debug this will enable debugging in py-json method',
action='store_true') action='store_true')
parser.add_argument('--log_level',
default=None,
help='Set logging level: debug | info | warning | error | critical')
parser.add_argument( parser.add_argument(
'-t', '-t',
'--endp_type', '--endp_type',
@@ -1727,8 +1730,8 @@ Setting wifi_settings per radio
logger_config = lf_logger_config.lf_logger_config() logger_config = lf_logger_config.lf_logger_config()
# set the logger level to debug # set the logger level to debug
if args.debug: if args.log_level:
logger_config.set_level_debug() logger_config.set_level(level=args.log_level)
# lf_logger_config_json will take presidence to changing debug levels # lf_logger_config_json will take presidence to changing debug levels
if args.lf_logger_config_json: if args.lf_logger_config_json: