Skip to content

Commit

Permalink
Remove noisy domain change callback logs (#6684)
Browse files Browse the repository at this point in the history
  • Loading branch information
taylanisikdemir authored Feb 21, 2025
1 parent d646252 commit df2683f
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions common/cache/domainCache.go
Original file line number Diff line number Diff line change
Expand Up @@ -682,13 +682,11 @@ func (c *DefaultDomainCache) triggerDomainChangeCallbackLocked(nextDomains []*Do
sw := c.scope.StartTimer(metrics.DomainCacheCallbacksLatency)
defer sw.Stop()

c.logger.Info("Domain change callbacks are going to triggered", tag.Number(int64(len(nextDomains))))
for i, callback := range c.callbacks {
c.logger.Info("Domain cache change callback started", tag.Number(int64(i)))
c.logger.Debug("Domain change callbacks are going to triggered", tag.Number(int64(len(nextDomains))))
for _, callback := range c.callbacks {
callback(nextDomains)
c.logger.Info("Domain cache change callback completed", tag.Number(int64(i)))
}
c.logger.Info("Domain change callbacks are completed", tag.Number(int64(len(nextDomains))))
c.logger.Debug("Domain change callbacks are completed", tag.Number(int64(len(nextDomains))))
}

func (c *DefaultDomainCache) buildEntryFromRecord(
Expand Down

0 comments on commit df2683f

Please sign in to comment.