all: blidly swap out glog to our log15, logs need rework
This commit is contained in:
		| @@ -24,8 +24,7 @@ import ( | ||||
|  | ||||
| 	"github.com/ethereum/go-ethereum/common" | ||||
| 	"github.com/ethereum/go-ethereum/crypto" | ||||
| 	"github.com/ethereum/go-ethereum/logger" | ||||
| 	"github.com/ethereum/go-ethereum/logger/glog" | ||||
| 	"github.com/ethereum/go-ethereum/log" | ||||
| 	"github.com/ethereum/go-ethereum/rlp" | ||||
| 	"github.com/ethereum/go-ethereum/trie" | ||||
| ) | ||||
| @@ -135,9 +134,9 @@ func (self *stateObject) markSuicided() { | ||||
| 		self.onDirty(self.Address()) | ||||
| 		self.onDirty = nil | ||||
| 	} | ||||
| 	if glog.V(logger.Debug) { | ||||
| 		glog.Infof("%x: #%d %v X\n", self.Address(), self.Nonce(), self.Balance()) | ||||
| 	} | ||||
| 	log.Debug("", "msg", log.Lazy{Fn: func() string { | ||||
| 		return fmt.Sprintf("%x: #%d %v X\n", self.Address(), self.Nonce(), self.Balance()) | ||||
| 	}}) | ||||
| } | ||||
|  | ||||
| func (c *stateObject) touch() { | ||||
| @@ -253,9 +252,9 @@ func (c *stateObject) AddBalance(amount *big.Int) { | ||||
| 	} | ||||
| 	c.SetBalance(new(big.Int).Add(c.Balance(), amount)) | ||||
|  | ||||
| 	if glog.V(logger.Debug) { | ||||
| 		glog.Infof("%x: #%d %v (+ %v)\n", c.Address(), c.Nonce(), c.Balance(), amount) | ||||
| 	} | ||||
| 	log.Debug("", "msg", log.Lazy{Fn: func() string { | ||||
| 		return fmt.Sprintf("%x: #%d %v (+ %v)\n", c.Address(), c.Nonce(), c.Balance(), amount) | ||||
| 	}}) | ||||
| } | ||||
|  | ||||
| // SubBalance removes amount from c's balance. | ||||
| @@ -266,9 +265,9 @@ func (c *stateObject) SubBalance(amount *big.Int) { | ||||
| 	} | ||||
| 	c.SetBalance(new(big.Int).Sub(c.Balance(), amount)) | ||||
|  | ||||
| 	if glog.V(logger.Debug) { | ||||
| 		glog.Infof("%x: #%d %v (- %v)\n", c.Address(), c.Nonce(), c.Balance(), amount) | ||||
| 	} | ||||
| 	log.Debug("", "msg", log.Lazy{Fn: func() string { | ||||
| 		return fmt.Sprintf("%x: #%d %v (- %v)\n", c.Address(), c.Nonce(), c.Balance(), amount) | ||||
| 	}}) | ||||
| } | ||||
|  | ||||
| func (self *stateObject) SetBalance(amount *big.Int) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user