aboutsummaryrefslogtreecommitdiffstats
path: root/whisper
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-04-07 20:57:04 +0800
committerobscuren <geffobscura@gmail.com>2015-04-07 20:57:04 +0800
commit688d118c7e0d439691e84fc6e068ab3e19da5185 (patch)
tree6891a60950e0c2956c9f2d4fed6fceb67430775c /whisper
parent01b2c90179ff82e4610745aea0e3e3ca53756305 (diff)
downloadgo-tangerine-688d118c7e0d439691e84fc6e068ab3e19da5185.tar
go-tangerine-688d118c7e0d439691e84fc6e068ab3e19da5185.tar.gz
go-tangerine-688d118c7e0d439691e84fc6e068ab3e19da5185.tar.bz2
go-tangerine-688d118c7e0d439691e84fc6e068ab3e19da5185.tar.lz
go-tangerine-688d118c7e0d439691e84fc6e068ab3e19da5185.tar.xz
go-tangerine-688d118c7e0d439691e84fc6e068ab3e19da5185.tar.zst
go-tangerine-688d118c7e0d439691e84fc6e068ab3e19da5185.zip
Updated logging
Diffstat (limited to 'whisper')
-rw-r--r--whisper/whisper.go7
1 files changed, 3 insertions, 4 deletions
diff --git a/whisper/whisper.go b/whisper/whisper.go
index 709667729..00dcb1932 100644
--- a/whisper/whisper.go
+++ b/whisper/whisper.go
@@ -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
}