From 92f25e297455aac6c878ca10350424f461ded41c Mon Sep 17 00:00:00 2001 From: Omar Sandoval Date: Tue, 21 Dec 2021 14:34:45 -0800 Subject: [PATCH] vmtest: enable logging when running vmtest.vm CLI Specifically, we want logs from vmtest.download. Signed-off-by: Omar Sandoval --- vmtest/vm.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/vmtest/vm.py b/vmtest/vm.py index 8b40dccb..7928a87f 100644 --- a/vmtest/vm.py +++ b/vmtest/vm.py @@ -279,6 +279,11 @@ def run_in_vm(command: str, kernel_dir: Path, build_dir: Path) -> int: if __name__ == "__main__": import argparse + import logging + + logging.basicConfig( + format="%(asctime)s:%(levelname)s:%(name)s:%(message)s", level=logging.INFO + ) parser = argparse.ArgumentParser( description="run vmtest virtual machine",