Skip to content

Commit

Permalink
Merge pull request #119 from ties/only-parse-broken-file-once
Browse files Browse the repository at this point in the history
Use debug level logging for hash change
  • Loading branch information
job authored Mar 1, 2024
2 parents 8adf6b5 + 4900445 commit febec67
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/stayrtr/stayrtr.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit febec67

Please sign in to comment.