MCPcopy Create free account
hub / github.com/monitoror/monitoror / Enable

Function Enable

cli/debug/debug.go:10–13  ·  view source on GitHub ↗

Enable sets the viper debug var to true and makes the logger to log at debug level.

()

Source from the content-addressed store, hash-verified

8// Enable sets the viper debug var to true
9// and makes the logger to log at debug level.
10func Enable() {
11 viper.Set("debug", true)
12 log.SetLevel(log.DEBUG)
13}
14
15// Disable sets the viper debug var to false
16// and makes the logger to log at info level.

Callers 2

TestInit_DevFunction · 0.92
TestDebugFunction · 0.85

Calls 1

SetMethod · 0.80

Tested by 2

TestInit_DevFunction · 0.74
TestDebugFunction · 0.68