fix logger

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
Василий Толстов 2020-10-02 12:28:33 +03:00
parent 523c99a9a6
commit ef751e5266

View File

@ -368,8 +368,8 @@ func (c *cache) run(domain string) {
c.setStatus(err) c.setStatus(err)
if a > 3 { if a > 3 {
if logger.V(logger.DebugLevel, logger.DefaultLogger) { if logger.V(logger.TraceLevel) {
logger.Debug("rcache: ", err, " backing off ", d) logger.Trace("rcache: ", err, " backing off ", d)
} }
a = 0 a = 0
} }
@ -393,8 +393,8 @@ func (c *cache) run(domain string) {
c.setStatus(err) c.setStatus(err)
if b > 3 { if b > 3 {
if logger.V(logger.DebugLevel, logger.DefaultLogger) { if logger.V(logger.TraceLevel) {
logger.Debug("rcache: ", err, " backing off ", d) logger.Trace("rcache: ", err, " backing off ", d)
} }
b = 0 b = 0
} }