aboutsummaryrefslogtreecommitdiffstats
path: root/core/vm/vm.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-04-04 18:40:11 +0800
committerobscuren <geffobscura@gmail.com>2015-04-04 18:40:11 +0800
commita0e44e3281fcef0913b172ed4cdb5283a8d4a46b (patch)
treee10b9ce906119e3810a15df66f433da678a2764e /core/vm/vm.go
parent60e097a5f4c10e9e869bd2b4b2814b766b409e18 (diff)
downloaddexon-a0e44e3281fcef0913b172ed4cdb5283a8d4a46b.tar.gz
dexon-a0e44e3281fcef0913b172ed4cdb5283a8d4a46b.tar.zst
dexon-a0e44e3281fcef0913b172ed4cdb5283a8d4a46b.zip
basic glog
Diffstat (limited to 'core/vm/vm.go')
-rw-r--r--core/vm/vm.go11
1 files changed, 4 insertions, 7 deletions
diff --git a/core/vm/vm.go b/core/vm/vm.go
index 6222ef8c2..118f60076 100644
--- a/core/vm/vm.go
+++ b/core/vm/vm.go
@@ -7,6 +7,7 @@ import (
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/state"
"github.com/ethereum/go-ethereum/crypto"
+ "github.com/ethereum/go-ethereum/logger/glog"
"github.com/ethereum/go-ethereum/params"
)
@@ -885,9 +886,7 @@ func (self *Vm) RunPrecompiled(p *PrecompiledAccount, callData []byte, context *
func (self *Vm) Printf(format string, v ...interface{}) VirtualMachine {
if self.debug {
- if self.logTy == LogTyPretty {
- self.logStr += fmt.Sprintf(format, v...)
- }
+ self.logStr += fmt.Sprintf(format, v...)
}
return self
@@ -895,10 +894,8 @@ func (self *Vm) Printf(format string, v ...interface{}) VirtualMachine {
func (self *Vm) Endl() VirtualMachine {
if self.debug {
- if self.logTy == LogTyPretty {
- vmlogger.Infoln(self.logStr)
- self.logStr = ""
- }
+ glog.V(0).Infoln(self.logStr)
+ self.logStr = ""
}
return self