Skip to content

Commit

Permalink
log: only log "nil resp" err if entry returned with a nil err and a n…
Browse files Browse the repository at this point in the history
…il resp.
  • Loading branch information
urlesistiana committed Oct 5, 2022
1 parent e07053b commit 301d78e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/server/dns_handler/entry_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ func (h *EntryHandler) ServeDNS(ctx context.Context, req *dns.Msg, meta *query_c
} else {
h.opts.Logger.Debug("entry returned", qCtx.InfoField())
}
if respMsg == nil {
if err == nil && respMsg == nil {
h.opts.Logger.Error("entry returned an nil response", qCtx.InfoField())
}

Expand Down

0 comments on commit 301d78e

Please sign in to comment.