mirror of
https://github.com/status-im/whisper.git
synced 2025-02-23 07:58:14 +00:00
Use logger.Error instead of 0 with glog
This commit is contained in:
parent
a2d9bee9a9
commit
e9bb242561
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user