mirror of
https://github.com/openziti/desktop-edge-win.git
synced 2026-10-13 08:11:16 +00:00
don't log expired dns req if not at trace level -only the warning that it happened
This commit is contained in:
@@ -291,7 +291,9 @@ func runDNSproxy(dnsServers []string) {
|
||||
now := time.Now()
|
||||
for k, r := range reqs {
|
||||
if now.After(r.exp) {
|
||||
log.Warnf("req expired %s %s", dns.Type(r.req.Question[0].Qtype), r.req.Question[0].Name)
|
||||
log.Warn("a DNS request has expired - enable trace logging and reproduce this issue for more information")
|
||||
log.Tracef(" expired DNS req: %s %s", dns.Type(r.req.Question[0].Qtype), r.req.Question[0].Name)
|
||||
|
||||
delete(reqs, k)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user