From f6125048c6687bbdfd5b6eed7b2072341cf5e9ce Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Wed, 22 Nov 2023 10:37:38 +0100 Subject: [PATCH] main: log success/failures via the monitor too --- osbuild/main_cli.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/osbuild/main_cli.py b/osbuild/main_cli.py index a3949cd7..09544008 100644 --- a/osbuild/main_cli.py +++ b/osbuild/main_cli.py @@ -186,6 +186,12 @@ def osbuild_cli() -> int: debug_break, stage_timeout=stage_timeout ) + # TODO: this needs a test + if r["success"]: + monitor.log(f"manifest {args.manifest_path} finished successfully", origin="org.osbuild.main") + else: + # if we had monitor.error() we could use that here + monitor.log(f"manifest {args.manifest_path} failed", origin="org.osbuild.main") if r["success"] and exports: for pid in exports: