Skip to content

Commit

Permalink
Move debug to trace
Browse files Browse the repository at this point in the history
  • Loading branch information
alrevuelta committed Sep 19, 2023
1 parent 32f5e81 commit 823f093
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions oracle/oracle.go
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ func (or *Oracle) SaveToJson(saveSlot bool) error {
return errors.Wrap(err, "could not create folder")
}

log.Debug("Saving state to file:", fmt.Sprintf("%s", jsonData))
log.Trace("Saving state to file:", fmt.Sprintf("%s", jsonData))

err = ioutil.WriteFile(path, jsonData, 0644)
if err != nil {
Expand Down Expand Up @@ -336,7 +336,7 @@ func (or *Oracle) LoadFromBytes(rawBytes []byte) (bool, error) {
return false, errors.Wrap(err, "could not marshal state without hash")
}

log.Debug("Loaded state from file: ", fmt.Sprintf("%s", jsonNoHash))
log.Trace("Loaded state from file: ", fmt.Sprintf("%s", jsonNoHash))

// We calculate the hash of the state we read
calculatedHashByte := sha256.Sum256(jsonNoHash[:])
Expand Down

0 comments on commit 823f093

Please sign in to comment.