fix logger
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
parent
523c99a9a6
commit
ef751e5266
8
cache.go
8
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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user