MCPcopy Index your code
hub / github.com/upper/db / init

Function init

logger.go:327–336  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

325}
326
327func init() {
328 if logLevel := strings.ToUpper(os.Getenv("UPPER_DB_LOG")); logLevel != "" {
329 for ll := range logLevels {
330 if ll.String() == logLevel {
331 LC().SetLevel(ll)
332 break
333 }
334 }
335 }
336}
337
338func collectFrames() []runtime.Frame {
339 pc := make([]uintptr, maxFrames)

Callers

nothing calls this directly

Calls 3

LCFunction · 0.85
StringMethod · 0.65
SetLevelMethod · 0.65

Tested by

no test coverage detected