mobile: Allows mobile clients to set verbosity of clients's logs

This commit is contained in:
Nicolas Guillaume 2016-12-23 11:43:32 +01:00
parent 115364b0a9
commit b01d9ee82d

View file

@ -33,6 +33,7 @@ import (
"github.com/ethereum/go-ethereum/p2p/nat"
"github.com/ethereum/go-ethereum/params"
"github.com/ethereum/go-ethereum/whisper/whisperv2"
"github.com/ethereum/go-ethereum/logger/glog"
)
// NodeConfig represents the collection of configuration values to fine tune the Geth
@ -208,3 +209,8 @@ func (n *Node) GetNodeInfo() *NodeInfo {
func (n *Node) GetPeersInfo() *PeerInfos {
return &PeerInfos{n.node.Server().PeersInfo()}
}
func (n *Node) Verbosity(level int) {
glog.SetV(level)
}