MCPcopy Create free account
hub / github.com/couchbase/sync_gateway / DisableTestLogging

Function DisableTestLogging

base/util_testing.go:611–615  ·  view source on GitHub ↗

DisableTestLogging is an alias for SetUpTestLogging(LevelNone, KeyNone) This function will panic if called multiple times in the same test.

(tb testing.TB)

Source from the content-addressed store, hash-verified

609// DisableTestLogging is an alias for SetUpTestLogging(LevelNone, KeyNone)
610// This function will panic if called multiple times in the same test.
611func DisableTestLogging(tb testing.TB) {
612 caller := ""
613 cleanup := setTestLogging(LevelNone, caller, KeyNone)
614 tb.Cleanup(cleanup)
615}
616
617// SetUpBenchmarkLogging will set the given log level and key, and do log processing for that configuration,
618// but discards the output, instead of writing it to console.

Calls 1

setTestLoggingFunction · 0.85