diff --git a/lisa/target.py b/lisa/target.py index f31a750b48350c6adcaf23f03eacd3cc65e02509..eff973d048cc7fc27ffbab5e4d293f5c7b87376b 100644 --- a/lisa/target.py +++ b/lisa/target.py @@ -401,6 +401,7 @@ class Target(Loggable, HideExekallID, Configurable): help="Path to a PlatformInfo yaml file.") parser.add_argument("--log-level", + default='info', choices=('warning', 'info', 'debug'), help="Verbosity level of the logs.") @@ -413,8 +414,7 @@ class Target(Loggable, HideExekallID, Configurable): ) args = parser.parse_args(argv) - if args.log_level: - setup_logging(level=args.log_level.upper()) + setup_logging(level=args.log_level.upper()) if args.kind == 'android': if not (args.host or args.device):