mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-26 14:46:42 +00:00
mobile: Allows mobile clients to set verbosity of clients's logs
This commit is contained in:
parent
115364b0a9
commit
b01d9ee82d
1 changed files with 6 additions and 0 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue