mirror of
https://github.com/status-im/whisper.git
synced 2025-01-20 23:59:21 +00:00
Updated logging
This commit is contained in:
parent
7c01fab58d
commit
1dd2fbcf9c
@ -11,6 +11,7 @@ import (
|
||||
"github.com/ethereum/go-ethereum/crypto/ecies"
|
||||
"github.com/ethereum/go-ethereum/event/filter"
|
||||
"github.com/ethereum/go-ethereum/logger"
|
||||
"github.com/ethereum/go-ethereum/logger/glog"
|
||||
"github.com/ethereum/go-ethereum/p2p"
|
||||
"gopkg.in/fatih/set.v0"
|
||||
)
|
||||
@ -29,8 +30,6 @@ type MessageEvent struct {
|
||||
|
||||
const DefaultTtl = 50 * time.Second
|
||||
|
||||
var wlogger = logger.NewLogger("SHH")
|
||||
|
||||
type Whisper struct {
|
||||
protocol p2p.Protocol
|
||||
filters *filter.Filters
|
||||
@ -70,7 +69,7 @@ func (self *Whisper) Version() uint {
|
||||
}
|
||||
|
||||
func (self *Whisper) Start() {
|
||||
wlogger.Infoln("Whisper started")
|
||||
glog.V(logger.Info).Infoln("Whisper started")
|
||||
go self.update()
|
||||
}
|
||||
|
||||
@ -195,7 +194,7 @@ func (self *Whisper) add(envelope *Envelope) error {
|
||||
go self.postEvent(envelope)
|
||||
}
|
||||
|
||||
wlogger.DebugDetailf("added whisper envelope %x\n", envelope)
|
||||
glog.V(logger.Detail).Infof("added whisper envelope %x\n", envelope)
|
||||
|
||||
return nil
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user