Skip to content

Commit 3953e6b

Browse files
authored
Merge pull request #239 from CortexFoundation/dev
vm | clean the log console by low level warning log
2 parents be7e61d + 423992a commit 3953e6b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

core/state_transition.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ func (st *StateTransition) TransitionDb() (ret []byte, usedGas uint64, quotaUsed
333333
return nil, 0, big0, false, vmerr
334334
}
335335

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

338338
// The only possible consensus-error would be if there wasn't
339339
// sufficient balance to make the transfer happen. The first

core/vm/interpreter.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ func (in *CVMInterpreter) Run(contract *Contract, input []byte, readOnly bool) (
264264
contract.Code = append([]byte{0, 1}, tmpCode...)
265265
log.Info("Model created", "size", modelMeta.RawSize, "hash", modelMeta.Hash.Hex(), "author", modelMeta.AuthorAddress.Hex(), "gas", modelMeta.Gas, "birth", modelMeta.BlockNum.Uint64())
266266
} else {
267-
log.Warn("Invalid model meta", "size", modelMeta.RawSize, "hash", modelMeta.Hash.Hex(), "author", modelMeta.AuthorAddress.Hex(), "gas", modelMeta.Gas, "birth", modelMeta.BlockNum.Uint64())
267+
log.Debug("Invalid model meta", "size", modelMeta.RawSize, "hash", modelMeta.Hash.Hex(), "author", modelMeta.AuthorAddress.Hex(), "gas", modelMeta.Gas, "birth", modelMeta.BlockNum.Uint64())
268268
}
269269
return contract.Code, nil
270270
}

torrentfs/torrentfs.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ func (fs *TorrentFS) Available(infohash string, rawSize int64) (bool, error) {
153153
return false, errors.New("download not completed")
154154
} else {
155155
if !torrent.IsAvailable() {
156-
log.Warn("[Not available] Download not completed", "hash", infohash, "raw", rawSize, "complete", torrent.BytesCompleted())
156+
log.Debug("[Not available] Download not completed", "hash", infohash, "raw", rawSize, "complete", torrent.BytesCompleted())
157157
return false, errors.New(fmt.Sprintf("download not completed: %d %d", torrent.BytesCompleted(), rawSize))
158158
}
159159
//log.Debug("storage", "Available", torrent.IsAvailable(), "torrent.BytesCompleted()", torrent.BytesCompleted(), "rawSize", rawSize)

0 commit comments

Comments
 (0)