1
0
mirror of https://github.com/bgp/stayrtr.git synced 2024-05-06 15:54:54 +00:00

Merge pull request #119 from ties/only-parse-broken-file-once

Use debug level logging for hash change
This commit is contained in:
Job Snijders
2024-03-01 12:40:25 +01:00
committed by GitHub

View File

@ -519,7 +519,7 @@ func (s *state) updateFile(file string) (bool, error) {
}
}
log.Infof("new cache file: Updating sha256 hash %x -> %x", s.lasthashCache, hsum)
log.Debugf("new cache file: Updating sha256 hash %x -> %x", s.lasthashCache, hsum)
s.lasthashCache = hsum
rpkilistjson, err := decodeJSON(data)
@ -553,7 +553,7 @@ func (s *state) updateSlurm(file string) (bool, error) {
return false, IdenticalFile{File: file}
}
}
log.Infof("new slurm file: Updating sha256 hash %x -> %x", s.lasthashCache, hsum)
log.Debugf("new slurm file: Updating sha256 hash %x -> %x", s.lasthashCache, hsum)
s.lasthashSlurm = hsum
buf := bytes.NewBuffer(data)