Skip to content

Commit

Permalink
Merge pull request #239 from CortexFoundation/dev
Browse files Browse the repository at this point in the history
vm | clean the log console by low level warning log
  • Loading branch information
ucwong authored Nov 19, 2019
2 parents be7e61d + 423992a commit 3953e6b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion core/state_transition.go
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ func (st *StateTransition) TransitionDb() (ret []byte, usedGas uint64, quotaUsed
return nil, 0, big0, false, vmerr
}

log.Warn("VM returned with error", "err", vmerr, "number", cvm.BlockNumber, "from", msg.From().Hex())
log.Debug("VM returned with error", "err", vmerr, "number", cvm.BlockNumber, "from", msg.From().Hex())

// The only possible consensus-error would be if there wasn't
// sufficient balance to make the transfer happen. The first
Expand Down
2 changes: 1 addition & 1 deletion core/vm/interpreter.go
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ func (in *CVMInterpreter) Run(contract *Contract, input []byte, readOnly bool) (
contract.Code = append([]byte{0, 1}, tmpCode...)
log.Info("Model created", "size", modelMeta.RawSize, "hash", modelMeta.Hash.Hex(), "author", modelMeta.AuthorAddress.Hex(), "gas", modelMeta.Gas, "birth", modelMeta.BlockNum.Uint64())
} else {
log.Warn("Invalid model meta", "size", modelMeta.RawSize, "hash", modelMeta.Hash.Hex(), "author", modelMeta.AuthorAddress.Hex(), "gas", modelMeta.Gas, "birth", modelMeta.BlockNum.Uint64())
log.Debug("Invalid model meta", "size", modelMeta.RawSize, "hash", modelMeta.Hash.Hex(), "author", modelMeta.AuthorAddress.Hex(), "gas", modelMeta.Gas, "birth", modelMeta.BlockNum.Uint64())
}
return contract.Code, nil
}
Expand Down
2 changes: 1 addition & 1 deletion torrentfs/torrentfs.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ func (fs *TorrentFS) Available(infohash string, rawSize int64) (bool, error) {
return false, errors.New("download not completed")
} else {
if !torrent.IsAvailable() {
log.Warn("[Not available] Download not completed", "hash", infohash, "raw", rawSize, "complete", torrent.BytesCompleted())
log.Debug("[Not available] Download not completed", "hash", infohash, "raw", rawSize, "complete", torrent.BytesCompleted())
return false, errors.New(fmt.Sprintf("download not completed: %d %d", torrent.BytesCompleted(), rawSize))
}
//log.Debug("storage", "Available", torrent.IsAvailable(), "torrent.BytesCompleted()", torrent.BytesCompleted(), "rawSize", rawSize)
Expand Down

0 comments on commit 3953e6b

Please sign in to comment.