Log the literal value, not a format string (#5425)

Signed-off-by: Andy Lindeman <andy@lindeman.io>
This commit is contained in:
Andy Lindeman
2022-06-05 13:17:00 -04:00
committed by GitHub
parent f8f87e9e6d
commit 6e58595c61
2 changed files with 14 additions and 1 deletions

View File

@@ -46,7 +46,7 @@ func (l Logger) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.Msg)
}
if ok || ok1 {
logstr := l.repl.Replace(ctx, state, rrw, rule.Format)
clog.Infof(logstr)
clog.Info(logstr)
}
return rc, err