Skip to content

Commit

Permalink
improve logging when data cache is corrupted
Browse files Browse the repository at this point in the history
  • Loading branch information
jdfergason committed Jan 8, 2025
1 parent ef0d9f8 commit f79f334
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit f79f334

Please sign in to comment.