From 2591883a18113f1b60e6057313ff552c92d7f261 Mon Sep 17 00:00:00 2001 From: Gustav Simonsson Date: Tue, 7 Apr 2015 12:48:13 +0200 Subject: Use logger.Error instead of 0 with glog --- whisper/message.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'whisper') 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 -- cgit