Log query type (#69)

This commit is contained in:
Frank Olbricht
2020-06-22 20:19:36 -06:00
committed by GitHub
parent 72a01a6fcc
commit 94387020af
23 changed files with 50 additions and 61 deletions
+1 -1
View File
@@ -39,7 +39,7 @@ func NewRandom(id string, opt RandomOptions, resolvers ...Resolver) *Random {
// Resolve a DNS query using a random resolver.
func (r *Random) Resolve(q *dns.Msg, ci ClientInfo) (*dns.Msg, error) {
log := Log.WithFields(logrus.Fields{"id": r.id, "client": ci.SourceIP, "qname": qName(q)})
log := logger(r.id, q, ci)
for {
resolver := r.pick()
if resolver == nil {