From b01d9ee82de082e856049c42213d7ff6fe21bffd Mon Sep 17 00:00:00 2001 From: Nicolas Guillaume Date: Fri, 23 Dec 2016 11:43:32 +0100 Subject: [PATCH] mobile: Allows mobile clients to set verbosity of clients's logs --- mobile/geth.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mobile/geth.go b/mobile/geth.go index af0054cdcd..0913287058 100644 --- a/mobile/geth.go +++ b/mobile/geth.go @@ -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) +}