Skip to content

Commit b277e87

Browse files
committed
changing the log to be more prominent
1 parent 75bd96e commit b277e87

File tree

1 file changed

+4
-1
lines changed
  • pkg/controller/registry/resolver/cache

1 file changed

+4
-1
lines changed

pkg/controller/registry/resolver/cache/cache.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,12 +212,15 @@ func (c *Cache) Namespaced(namespaces ...string) MultiCatalogOperatorFinder {
212212

213213
// remove any with a "live" outstanding request
214214
misses = slices.DeleteFunc(misses, func(key SourceKey) bool {
215+
fl := c.logger.(logrus.FieldLogger)
216+
fl.Errorf(">>> checking for outstanding request for %s", key)
217+
215218
hdr := c.snapshots[key]
216219

217220
// if we already have a request timestamp, we have an outstanding request, so prevent stacking
218221
// and just send new requests if the previous one has expired
219222
if hdr != nil && hdr.RequestSentinelActive() {
220-
c.logger.Printf("Skipping new request for %s, already in progress", key)
223+
fl.Errorf("skipping new request for %s, already in progress", key)
221224
return true
222225
}
223226
return false

0 commit comments

Comments
 (0)