code_size_compare: set log level as ERROR in option --stdout
If we use option --stdout, the logging level is set as logging.ERROR. But --verbose is able to overwrite logging level as logging.INFO if we want to display intermediate log in the process of code size comparison. Signed-off-by: Yanray Wang <yanray.wang@arm.com>
This commit is contained in:
parent
2ba9df2c1b
commit
533cde22c0
1 changed files with 4 additions and 1 deletions
|
@ -856,6 +856,9 @@ def main():
|
||||||
|
|
||||||
logger = logging.getLogger()
|
logger = logging.getLogger()
|
||||||
logging_util.configure_logger(logger)
|
logging_util.configure_logger(logger)
|
||||||
|
if comp_args.stdout and not comp_args.verbose:
|
||||||
|
logger.setLevel(logging.ERROR)
|
||||||
|
else:
|
||||||
logger.setLevel(logging.DEBUG if comp_args.verbose else logging.INFO)
|
logger.setLevel(logging.DEBUG if comp_args.verbose else logging.INFO)
|
||||||
|
|
||||||
if os.path.isfile(comp_args.comp_dir):
|
if os.path.isfile(comp_args.comp_dir):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue