mirror of
https://github.com/coder/coder.git
synced 2025-07-23 21:32:07 +00:00
fix: prevent error log when pgcoord
query is canceled (#8609)
This commit is contained in:
@ -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),
|
||||
|
Reference in New Issue
Block a user