MCPcopy Create free account
hub / github.com/DNAProject/DNA / SetDebugLevel

Method SetDebugLevel

common/log/log.go:132–139  ·  view source on GitHub ↗
(level int)

Source from the content-addressed store, hash-verified

130}
131
132func (l *Logger) SetDebugLevel(level int) error {
133 if level > MaxLevelLog || level < 0 {
134 return errors.New("Invalid Debug Level")
135 }
136
137 l.level = level
138 return nil
139}
140
141func (l *Logger) Output(level int, a ...interface{}) error {
142 if level >= l.level {

Callers 2

SetDebugInfoFunction · 0.80
TestLogFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestLogFunction · 0.64