From ca9cbb339df9118f9d6edef29528a64259c6bc3c Mon Sep 17 00:00:00 2001 From: Victor Lyuboslavsky Date: Thu, 31 Oct 2024 14:21:24 -0500 Subject: [PATCH] Updated logging of error. --- orbit/cmd/orbit/orbit.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/orbit/cmd/orbit/orbit.go b/orbit/cmd/orbit/orbit.go index 84fc4e4b2c40..e57944cb8e9a 100644 --- a/orbit/cmd/orbit/orbit.go +++ b/orbit/cmd/orbit/orbit.go @@ -1199,7 +1199,7 @@ func main() { go func() { for { msg := <-desktopRunner.errorNotifyCh - log.Error().Msgf("fleet-desktop runner error: %s", msg) + log.Error().Err(errors.New(msg)).Msg("fleet-desktop runner error") // Vital errors are always sent to Fleet, regardless of the error reporting setting FLEET_ENABLE_POST_CLIENT_DEBUG_ERRORS. fleetdErr := fleet.FleetdError{ Vital: true,