Skip to content

Commit 41bce54

Browse files
committed
chore: adding logging of possible error
1 parent b2b3218 commit 41bce54

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pkg/cmd/run_node.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,11 @@ func StartNode(
9898
}
9999
defer func() {
100100
// best-effort shutdown within a short timeout
101-
c, cancel := context.WithTimeout(context.Background(), 5*time.Second)
101+
c, cancel := context.WithTimeout(context.Background(), 10*time.Second)
102102
defer cancel()
103-
_ = shutdownTracing(c)
103+
if err := shutdownTracing(c); err != nil {
104+
logger.Error().Err(err).Msg("failed to shutdown tracing")
105+
}
104106
}()
105107
}
106108

0 commit comments

Comments
 (0)