aboutsummaryrefslogtreecommitdiffstats
path: root/core/vm/interpreter.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2017-02-28 19:35:17 +0800
committerPéter Szilágyi <peterke@gmail.com>2017-02-28 21:03:20 +0800
commite588e0ca2b3b615af0ecfd5679c42df8f1cc4272 (patch)
treec37e95792ed9f17209b7de26a5d6047ac915db2a /core/vm/interpreter.go
parentd4f60d362b8fcf82db1accf89c146a2a71375841 (diff)
downloadgo-tangerine-e588e0ca2b3b615af0ecfd5679c42df8f1cc4272.tar.gz
go-tangerine-e588e0ca2b3b615af0ecfd5679c42df8f1cc4272.tar.zst
go-tangerine-e588e0ca2b3b615af0ecfd5679c42df8f1cc4272.zip
all: next batch of log polishes to contextual versions
Diffstat (limited to 'core/vm/interpreter.go')
-rw-r--r--core/vm/interpreter.go8
1 files changed, 2 insertions, 6 deletions
diff --git a/core/vm/interpreter.go b/core/vm/interpreter.go
index 41f6a53f8..7d12ebc05 100644
--- a/core/vm/interpreter.go
+++ b/core/vm/interpreter.go
@@ -123,13 +123,9 @@ func (evm *Interpreter) Run(contract *Contract, input []byte) (ret []byte, err e
}
}()
- log.Debug("", "msg", log.Lazy{Fn: func() string {
- return fmt.Sprintf("evm running: %x\n", codehash[:4])
- }})
+ log.Debug("EVM running contract", "hash", codehash[:])
tstart := time.Now()
- defer log.Debug("", "msg", log.Lazy{Fn: func() string {
- return fmt.Sprintf("evm done: %x. time: %v\n", codehash[:4], time.Since(tstart))
- }})
+ defer log.Debug("EVM finished running contract", "hash", codehash[:], "elapsed", time.Since(tstart))
// The Interpreter main run loop (contextual). This loop runs until either an
// explicit STOP, RETURN or SELFDESTRUCT is executed, an error occurred during