fix: prevent error log when pgcoord query is canceled (#8609)

This commit is contained in:
Colin Adler
2023-07-19 16:40:57 -05:00
committed by GitHub
parent aceedefce3
commit 00b9a3ce58
2 changed files with 5 additions and 2 deletions

View File

@ -424,7 +424,7 @@ func (b *binder) writeOne(bnd binding) error {
default:
panic("unhittable")
}
if err != nil {
if err != nil && !database.IsQueryCanceledError(err) {
b.logger.Error(b.ctx, "failed to write binding to database",
slog.F("client_id", bnd.client),
slog.F("agent_id", bnd.agent),