From b9e9c899dcbbe35cac72bceb117ae4ec56494d81 Mon Sep 17 00:00:00 2001 From: Kshitij Sisodia Date: Thu, 27 May 2021 13:57:35 +0100 Subject: MLECO-1943: Documentation review Major update for the documentation. Also, a minor logging change in helper scripts. Change-Id: Ia79f78a45c9fa2d139418fbc0ca9e52245704ba3 --- build_default.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'build_default.py') diff --git a/build_default.py b/build_default.py index 3bb91b1..e4aa59d 100755 --- a/build_default.py +++ b/build_default.py @@ -38,8 +38,6 @@ def run(toolchain: str, download_resources: bool, run_vela_on_models: bool): """ current_file_dir = os.path.dirname(os.path.abspath(__file__)) - logging.basicConfig(filename='log_build_default.log', level=logging.DEBUG) - logging.getLogger().addHandler(logging.StreamHandler(sys.stdout)) # 1. Make sure the toolchain is supported, and set the right one here supported_toolchain_ids = ["gnu", "arm"] @@ -105,4 +103,8 @@ if __name__ == '__main__': help="Do not run Vela optimizer on downloaded models.", action="store_true") args = parser.parse_args() + + logging.basicConfig(filename='log_build_default.log', level=logging.DEBUG) + logging.getLogger().addHandler(logging.StreamHandler(sys.stdout)) + run(args.toolchain.lower(), not args.skip_download, not args.skip_vela) -- cgit v1.2.1