Use logger.Error instead of 0 with glog

This commit is contained in:
Gustav Simonsson
2015-04-07 12:48:13 +02:00
parent 3f306f63d4
commit 2591883a18
3 changed files with 6 additions and 3 deletions

View File

@ -5,6 +5,7 @@ import (
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/crypto"
"github.com/ethereum/go-ethereum/logger"
"github.com/ethereum/go-ethereum/logger/glog"
"github.com/ethereum/go-ethereum/params"
)
@ -84,7 +85,7 @@ func ecrecoverFunc(in []byte) []byte {
pubKey, err := crypto.Ecrecover(in[:32], rsv)
// make sure the public key is a valid one
if err != nil {
glog.V(0).Infof("EC RECOVER FAIL: ", err)
glog.V(logger.Error).Infof("EC RECOVER FAIL: ", err)
return nil
}