Commit ee7e1ded authored by Florian Fischer's avatar Florian Fischer
Browse files

[eval.py] fix logging initiation and silent make check

parent af0aeef8
Pipeline #67394 failed with stage
in 22 seconds
......@@ -875,9 +875,12 @@ if __name__ == '__main__':
args = parser.parse_args()
numeric_loglevel = getattr(logging, args.log.upper(), None)
if not isinstance(numeric_loglevel, int):
raise ValueError(f'Invalid log level: {args.log}')
if args.log:
numeric_loglevel = getattr(logging, args.log.upper(), None)
if not isinstance(numeric_loglevel, int):
raise ValueError(f'Invalid log level: {args.log}')
else:
numeric_loglevel = logging.WARNING
logging.basicConfig(level=numeric_loglevel)
log = logging.getLogger(Path(__file__).name)
......@@ -976,7 +979,7 @@ if __name__ == '__main__':
print("Building the artifact ...")
make_cmd = ['make']
if numeric_loglevel <= logging.DEBUG:
if numeric_loglevel > logging.DEBUG:
make_cmd.append('-s')
subprocess.run(make_cmd, check=True, cwd=ROOT_DIR)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment