From b9ffd189a721cb1acab5fe20b35076f4a77acaa5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20B=C3=B6ckli?= <42514703+boecklim@users.noreply.github.com> Date: Mon, 19 Aug 2024 10:40:00 +0200 Subject: [PATCH] Do not return error if tracing raises error (#556) --- cmd/arc/main.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cmd/arc/main.go b/cmd/arc/main.go index 7d23d4217..f7f0a3088 100644 --- a/cmd/arc/main.go +++ b/cmd/arc/main.go @@ -63,9 +63,10 @@ func run() error { if arcConfig.Tracing != nil { cleanup, err := enableTracing(logger, arcConfig.Tracing.DialAddr) if err != nil { - return err + logger.Error("failed to enable tracing", slog.String("err", err.Error())) + } else { + shutdownFns = append(shutdownFns, cleanup) } - shutdownFns = append(shutdownFns, cleanup) } go func() {