Skip to content

Commit

Permalink
Include stacktrace in shutdown timeout message (#3360)
Browse files Browse the repository at this point in the history
  • Loading branch information
StephenButtolph authored Sep 4, 2024
1 parent 84a2c77 commit 173345a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions snow/networking/router/chain_router.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import (
"github.com/ava-labs/avalanchego/snow/networking/benchlist"
"github.com/ava-labs/avalanchego/snow/networking/handler"
"github.com/ava-labs/avalanchego/snow/networking/timeout"
"github.com/ava-labs/avalanchego/utils"
"github.com/ava-labs/avalanchego/utils/constants"
"github.com/ava-labs/avalanchego/utils/linked"
"github.com/ava-labs/avalanchego/utils/logging"
Expand Down Expand Up @@ -377,6 +378,7 @@ func (cr *ChainRouter) Shutdown(ctx context.Context) {
chainLog := chain.Context().Log
if err != nil {
chainLog.Warn("timed out while shutting down",
zap.String("stack", utils.GetStacktrace(true)),
zap.Error(err),
)
} else {
Expand Down Expand Up @@ -700,6 +702,7 @@ func (cr *ChainRouter) removeChain(ctx context.Context, chainID ids.ID) {
chainLog := chain.Context().Log
if err != nil {
chainLog.Warn("timed out while shutting down",
zap.String("stack", utils.GetStacktrace(true)),
zap.Error(err),
)
} else {
Expand Down

0 comments on commit 173345a

Please sign in to comment.