diff --git a/blockchain/blockstore.go b/blockchain/blockstore.go index 0719873386..c910f7db92 100644 --- a/blockchain/blockstore.go +++ b/blockchain/blockstore.go @@ -1168,7 +1168,7 @@ func (bs *BlockStore) GetDbVersion() int64 { return ver.Data } -//SetDbVersion 获取blockchain的数据库版本号 +//SetDbVersion 设置blockchain的数据库版本号 func (bs *BlockStore) SetDbVersion(versionNo int64) error { ver := types.Int64{Data: versionNo} verByte := types.Encode(&ver) diff --git a/executor/execenv.go b/executor/execenv.go index 0348593486..bcf0ad7467 100644 --- a/executor/execenv.go +++ b/executor/execenv.go @@ -477,7 +477,7 @@ func (e *executor) execTxOne(feelog *types.Receipt, tx *types.Transaction, index e.startTx() receipt, err := e.Exec(tx, index) if err != nil { - elog.Error("exec tx error = ", "err", err, "exec", string(tx.Execer), "action", tx.ActionName()) + elog.Error("execTxOne", "exec tx error", err, "exec", string(tx.Execer), "action", tx.ActionName()) //add error log errlog := &types.ReceiptLog{Ty: types.TyLogErr, Log: []byte(err.Error())} feelog.Logs = append(feelog.Logs, errlog) @@ -632,7 +632,7 @@ func (e *executor) execTx(exec *Executor, tx *types.Transaction, index int) (*ty feelog, err = e.execTxOne(feelog, tx, index) if err != nil { e.rollback() - elog.Error("exec tx = ", "index", index, "execer", string(tx.Execer), "err", err) + elog.Error("execTx", "index", index, "execer", string(tx.Execer), "err", err) } else { err := e.commit() if err != nil { diff --git a/util/cli/chain33.go b/util/cli/chain33.go index 1e1de7c5a6..b66c41dfa6 100644 --- a/util/cli/chain33.go +++ b/util/cli/chain33.go @@ -254,9 +254,9 @@ func createFile(filename string) (*os.File, error) { func watching() { var m runtime.MemStats runtime.ReadMemStats(&m) - log.Info("info:", "NumGoroutine:", runtime.NumGoroutine()) - log.Info("info:", "Mem:", m.Sys/(1024*1024)) - log.Info("info:", "HeapAlloc:", m.HeapAlloc/(1024*1024)) + log.Info("GC runtime info:", "NumGoroutine:", runtime.NumGoroutine()) + log.Info("GC runtime info:", "Mem:", m.Sys/(1024*1024)) + log.Info("GC runtime info:", "HeapAlloc:", m.HeapAlloc/(1024*1024)) } func pwd() string {