From 46255f5220ea71e67dd87c5f2cfec6f9d5c6add3 Mon Sep 17 00:00:00 2001 From: Ainar Garipov Date: Fri, 9 Dec 2022 18:12:48 +0300 Subject: [PATCH] proxy: imp logs --- proxy/cache.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/proxy/cache.go b/proxy/cache.go index c8cb8c1a9..9348774bc 100644 --- a/proxy/cache.go +++ b/proxy/cache.go @@ -348,10 +348,14 @@ func cacheTTL(m *dns.Msg) (ttl uint32) { if isCacheableSucceded(m) { return ttl } + + log.Debug("dnsproxy: cache: not a cacheable noerror response; not caching") case dns.RcodeNameError: if isCacheableNegative(m) { return ttl } + + log.Debug("dnsproxy: cache: not a cacheable nxdomain response; not caching") case dns.RcodeServerFailure: return ttl default: