From f79f3349738af29da5655151059ac53557ad42ff Mon Sep 17 00:00:00 2001 From: Jeremy Fergason Date: Wed, 8 Jan 2025 00:12:02 -0700 Subject: [PATCH] improve logging when data cache is corrupted --- data/cache.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/cache.go b/data/cache.go index 5d201ad..e02c4da 100644 --- a/data/cache.go +++ b/data/cache.go @@ -407,7 +407,7 @@ func (cache *SecurityMetricCache) SetMatched(security *Security, metric Metric, } if err := interval.Valid(); err != nil { - log.Error().Err(err).Stack().Time("Begin", interval.Begin).Time("End", interval.End).Msg("cannot set cache value with invalid interval") + log.Error().Err(err).Stack().Str("Security", security.Ticker).Time("Begin", interval.Begin).Time("End", interval.End).Msg("cannot set cache value with invalid interval") return ErrInvalidTimeRange }