From a48386bd5605f989593a0f53847dc49861d10154 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Fri, 7 Feb 2025 13:20:56 +0900 Subject: [PATCH] system/dbus: dump messages on early fault In the current app implementation this gets dumped in the wait method after resuming output. Wait is never called in an early fault condition, so any error messages get lost. Signed-off-by: Ophestra --- internal/system/dbus.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/internal/system/dbus.go b/internal/system/dbus.go index 859fa02..4220826 100644 --- a/internal/system/dbus.go +++ b/internal/system/dbus.go @@ -127,6 +127,10 @@ func (d *DBus) apply(_ *I) error { // ready is not nil if the proxy process faulted if err := <-ready; err != nil { + // dump message buffer as caller does not dump this + // in an early fault condition + d.out.Dump() + // note that err here is either an I/O error or a predetermined unexpected behaviour error return fmsg.WrapErrorSuffix(err, "message bus proxy fault after start:")