main: log success/failures via the monitor too
This commit is contained in:
parent
1fa0472a8c
commit
f6125048c6
1 changed files with 6 additions and 0 deletions
|
|
@ -186,6 +186,12 @@ def osbuild_cli() -> int:
|
||||||
debug_break,
|
debug_break,
|
||||||
stage_timeout=stage_timeout
|
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:
|
if r["success"] and exports:
|
||||||
for pid in exports:
|
for pid in exports:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue