Skip to content

Commit

Permalink
Warn on cache write failure
Browse files Browse the repository at this point in the history
  • Loading branch information
adaszko committed Dec 5, 2024
1 parent ff6e581 commit dff133f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func SaveCache(newCache *LocalCache) {

tmpfile, err := os.CreateTemp("", "stakefish-eth2-monitor-cache.*.json")
if err != nil {
log.Debug().Err(err).Msg("SaveCache: os.Open failed; skip")
log.Warn().Err(err).Msg("SaveCache: os.CreateTemp failed; skip")
return
}
defer os.Remove(tmpfile.Name())
Expand Down

0 comments on commit dff133f

Please sign in to comment.