net/dns/resolver: fix log prefix

The passed in logf already has a "dns: " prefix so they were
doubled up.
This commit is contained in:
Brad Fitzpatrick 2021-10-07 12:19:39 -07:00
parent 7634af5c6f
commit 47044f3af7

View File

@ -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),