net/dns/resolver: fix log prefix

The passed in logf already has a "dns: " prefix so they were
doubled up.
pull/3019/head
Brad Fitzpatrick 3 years ago
parent 7634af5c6f
commit 47044f3af7

@ -217,7 +217,7 @@ type ForwardLinkSelector interface {
// linkMon optionally specifies a link monitor to use for socket rebinding.
func New(logf logger.Logf, linkMon *monitor.Mon, linkSel ForwardLinkSelector) *Resolver {
r := &Resolver{
logf: logger.WithPrefix(logf, "dns: "),
logf: logger.WithPrefix(logf, "resolver: "),
linkMon: linkMon,
responses: make(chan packet),
errors: make(chan error),

Loading…
Cancel
Save