Skip to content

Commit 9725eaf

Browse files
okurzMartchus
andauthored
Update openqa-advanced-retrigger-jobs
Co-authored-by: Martchus <[email protected]>
1 parent d8e51b6 commit 9725eaf

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

openqa-advanced-retrigger-jobs

+1-8
Original file line numberDiff line numberDiff line change
@@ -63,14 +63,7 @@ def parse_args():
6363
help="If set, only print the actions without executing",
6464
)
6565
args = parser.parse_args()
66-
verbose_to_log = {
67-
0: logging.CRITICAL,
68-
1: logging.ERROR,
69-
2: logging.WARN,
70-
3: logging.INFO,
71-
4: logging.DEBUG,
72-
}
73-
logging_level = logging.DEBUG if args.verbose > 4 else verbose_to_log[args.verbose]
66+
logging_level = (5 - min(args.verbose, 4)) * 10
7467
log.setLevel(logging_level)
7568
return args
7669

0 commit comments

Comments
 (0)