mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-26 14:46:42 +00:00
mobile: move method to logger.go file, attach to Geth package, and rename it to SetVerbosity
This commit is contained in:
parent
35058304d8
commit
b5e748f268
2 changed files with 25 additions and 6 deletions
|
|
@ -209,8 +209,3 @@ func (n *Node) GetNodeInfo() *NodeInfo {
|
|||
func (n *Node) GetPeersInfo() *PeerInfos {
|
||||
return &PeerInfos{n.node.Server().PeersInfo()}
|
||||
}
|
||||
|
||||
//Verbosity sets the global verbosity level.
|
||||
func (n *Node) Verbosity(level int) {
|
||||
glog.SetV(level)
|
||||
}
|
||||
|
|
|
|||
24
mobile/logger.go
Normal file
24
mobile/logger.go
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
// Copyright 2016 The go-ethereum Authors
|
||||
// This file is part of the go-ethereum library.
|
||||
//
|
||||
// The go-ethereum library is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU Lesser General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// The go-ethereum library is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public License
|
||||
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
// Contains all the methods to manage logs on mobile plateforms.
|
||||
|
||||
package geth
|
||||
|
||||
//Verbosity sets the global verbosity level (between 0 and 6 - see logger/verbosity.go).
|
||||
func SetVerbosity(level int) {
|
||||
glog.SetV(level)
|
||||
}
|
||||
Loading…
Reference in a new issue