all: blidly swap out glog to our log15, logs need rework
This commit is contained in:
@ -22,14 +22,14 @@ package whisperv2
|
||||
import (
|
||||
"crypto/ecdsa"
|
||||
crand "crypto/rand"
|
||||
"fmt"
|
||||
"math/rand"
|
||||
"time"
|
||||
|
||||
"github.com/ethereum/go-ethereum/common"
|
||||
"github.com/ethereum/go-ethereum/crypto"
|
||||
"github.com/ethereum/go-ethereum/crypto/ecies"
|
||||
"github.com/ethereum/go-ethereum/logger"
|
||||
"github.com/ethereum/go-ethereum/logger/glog"
|
||||
"github.com/ethereum/go-ethereum/log"
|
||||
)
|
||||
|
||||
// Message represents an end-user data packet to transmit through the Whisper
|
||||
@ -125,7 +125,7 @@ func (self *Message) Recover() *ecdsa.PublicKey {
|
||||
// Otherwise try and recover the signature
|
||||
pub, err := crypto.SigToPub(self.hash(), self.Signature)
|
||||
if err != nil {
|
||||
glog.V(logger.Error).Infof("Could not get public key from signature: %v", err)
|
||||
log.Error(fmt.Sprintf("Could not get public key from signature: %v", err))
|
||||
return nil
|
||||
}
|
||||
return pub
|
||||
|
Reference in New Issue
Block a user