We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b56c9c4 commit 8e41adaCopy full SHA for 8e41ada
enterprise/tailnet/pgcoord.go
@@ -1654,7 +1654,11 @@ func (h *heartbeats) sendDelete() {
1654
ctx := dbauthz.As(context.Background(), pgCoordSubject)
1655
err := h.store.DeleteCoordinator(ctx, h.self)
1656
if err != nil {
1657
- h.logger.Error(h.ctx, "failed to send coordinator delete", slog.Error(err))
+ // If this errors and the context is no longer active, this
1658
+ // most likely is a database connection error.
1659
+ if h.ctx.Err() == nil {
1660
+ h.logger.Error(h.ctx, "failed to send coordinator delete", slog.Error(err))
1661
+ }
1662
return
1663
}
1664
h.logger.Debug(h.ctx, "deleted coordinator")
0 commit comments