Skip to content

Commit

Permalink
Make error handling of write fail to log only
Browse files Browse the repository at this point in the history
relekang committed Apr 26, 2021

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
1 parent 47e37e0 commit aa60907
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blocklist.go
Original file line number Diff line number Diff line change
@@ -43,7 +43,7 @@ func (b Blocklist) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.Ms
err := w.WriteMsg(resp)

if err != nil {
return dns.RcodeServerFailure, err
log.Errorf("failed to write block for %s, %v+", state.Name(), err)
}

blockCount.WithLabelValues(metrics.WithServer(ctx)).Inc()

0 comments on commit aa60907

Please sign in to comment.