Skip to content

Commit

Permalink
use duration in warn deprecated
Browse files Browse the repository at this point in the history
As grafana#5148 changed, the deprecated is fifocache.duration, not fifocache.interval.
  • Loading branch information
lxwzy committed Jul 9, 2022
1 parent e7fb10f commit f529448
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/storage/chunk/cache/fifo_cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ func NewFifoCache(name string, cfg FifoCacheConfig, reg prometheus.Registerer, l

if cfg.DeprecatedValidity > 0 {
flagext.DeprecatedFlagsUsed.Inc()
level.Warn(logger).Log("msg", "running with DEPRECATED flag fifocache.interval, use fifocache.ttl instead", "cache", name)
level.Warn(logger).Log("msg", "running with DEPRECATED flag fifocache.duration, use fifocache.ttl instead", "cache", name)
cfg.TTL = cfg.DeprecatedValidity
}

Expand Down

0 comments on commit f529448

Please sign in to comment.