diff options
author | Gustav Simonsson <gustav.simonsson@gmail.com> | 2015-04-07 18:48:13 +0800 |
---|---|---|
committer | Gustav Simonsson <gustav.simonsson@gmail.com> | 2015-04-07 18:48:19 +0800 |
commit | 2591883a18113f1b60e6057313ff552c92d7f261 (patch) | |
tree | 71aa559030cb2792e4646715c15a23744dc471dd /whisper | |
parent | 3f306f63d48f011a527e301e3bf9aec2d6efb7e1 (diff) | |
download | go-tangerine-2591883a18113f1b60e6057313ff552c92d7f261.tar.gz go-tangerine-2591883a18113f1b60e6057313ff552c92d7f261.tar.zst go-tangerine-2591883a18113f1b60e6057313ff552c92d7f261.zip |
Use logger.Error instead of 0 with glog
Diffstat (limited to 'whisper')
-rw-r--r-- | whisper/message.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/whisper/message.go b/whisper/message.go index 407cfb1e8..ad6a1bcff 100644 --- a/whisper/message.go +++ b/whisper/message.go @@ -5,6 +5,7 @@ import ( "time" "github.com/ethereum/go-ethereum/crypto" + "github.com/ethereum/go-ethereum/logger" "github.com/ethereum/go-ethereum/logger/glog" ) @@ -35,7 +36,7 @@ func (self *Message) Recover() *ecdsa.PublicKey { defer func() { recover() }() // in case of invalid sig pub, err := crypto.SigToPub(self.hash(), self.Signature) if err != nil { - glog.V(0).Infof("Could not get pubkey from signature: ", err) + glog.V(logger.Error).Infof("Could not get pubkey from signature: ", err) return nil } return pub |