From ef751e5266a29f75c4e7f65dc752d16623703017 Mon Sep 17 00:00:00 2001 From: Vasiliy Tolstov Date: Fri, 2 Oct 2020 12:28:33 +0300 Subject: [PATCH] fix logger Signed-off-by: Vasiliy Tolstov --- cache.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cache.go b/cache.go index d88b10d..160c2f7 100644 --- a/cache.go +++ b/cache.go @@ -368,8 +368,8 @@ func (c *cache) run(domain string) { c.setStatus(err) if a > 3 { - if logger.V(logger.DebugLevel, logger.DefaultLogger) { - logger.Debug("rcache: ", err, " backing off ", d) + if logger.V(logger.TraceLevel) { + logger.Trace("rcache: ", err, " backing off ", d) } a = 0 } @@ -393,8 +393,8 @@ func (c *cache) run(domain string) { c.setStatus(err) if b > 3 { - if logger.V(logger.DebugLevel, logger.DefaultLogger) { - logger.Debug("rcache: ", err, " backing off ", d) + if logger.V(logger.TraceLevel) { + logger.Trace("rcache: ", err, " backing off ", d) } b = 0 }