aboutsummaryrefslogtreecommitdiffstats
path: root/node/api.go
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2016-01-26 06:35:25 +0800
committerFelix Lange <fjl@twurst.com>2016-01-26 06:35:25 +0800
commitf2ab351e8d3b0a4e569ce56f6a4f17725ca5ba65 (patch)
tree424c1067530fd4013234983549b03b42aa994db2 /node/api.go
parent6e6931ef73c68d1a8ae45475f7719bdc962cb2c1 (diff)
parente4d794851b713b5a22147c570963ff76ec26c7d0 (diff)
downloadgo-tangerine-f2ab351e8d3b0a4e569ce56f6a4f17725ca5ba65.tar.gz
go-tangerine-f2ab351e8d3b0a4e569ce56f6a4f17725ca5ba65.tar.zst
go-tangerine-f2ab351e8d3b0a4e569ce56f6a4f17725ca5ba65.zip
Merge pull request #2136 from fjl/glog-prefix
logger/glog: improve vmodule
Diffstat (limited to 'node/api.go')
-rw-r--r--node/api.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/node/api.go b/node/api.go
index a44ee16c0..909329e57 100644
--- a/node/api.go
+++ b/node/api.go
@@ -138,6 +138,11 @@ func (api *PrivateDebugAPI) Verbosity(level int) {
glog.SetV(level)
}
+// Vmodule updates the node's logging verbosity pattern.
+func (api *PrivateDebugAPI) Vmodule(pattern string) error {
+ return glog.SetVmodule(pattern)
+}
+
// PublicDebugAPI is the collection of debugging related API methods exposed over
// both secure and unsecure RPC channels.
type PublicDebugAPI struct {