aboutsummaryrefslogtreecommitdiffstats
path: root/light/state.go
diff options
context:
space:
mode:
Diffstat (limited to 'light/state.go')
-rw-r--r--light/state.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/light/state.go b/light/state.go
index f19748e89..1fb583c1d 100644
--- a/light/state.go
+++ b/light/state.go
@@ -17,12 +17,12 @@
package light
import (
+ "fmt"
"math/big"
"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"
"golang.org/x/net/context"
)
@@ -239,9 +239,9 @@ func (self *LightState) GetOrNewStateObject(ctx context.Context, addr common.Add
// newStateObject creates a state object whether it exists in the state or not
func (self *LightState) newStateObject(addr common.Address) *StateObject {
- if glog.V(logger.Debug) {
- glog.Infof("(+) %x\n", addr)
- }
+ log.Debug("", "msg", log.Lazy{Fn: func() string {
+ return fmt.Sprintf("(+) %x\n", addr)
+ }})
stateObject := NewStateObject(addr, self.odr)
self.stateObjects[addr.Str()] = stateObject