MCPcopy Create free account
hub / github.com/koding/kite / init

Function init

testutil/testutil.go:100–106  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

98}
99
100func init() {
101 // Monkey-patch default logging handler that is used by Kite.Logger
102 // in order to hide logs until "-v" flag is given to "test.sh" script.
103 original := logging.DefaultHandler
104 original.SetLevel(logging.DEBUG)
105 logging.DefaultHandler = &quietHandler{original}
106}
107
108// quietHandler does not output any log messages until "-v" flag is given in tests.
109type quietHandler struct {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected