MCPcopy
hub / github.com/cortexlabs/cortex / ErrorInvalidLogLevel

Function ErrorInvalidLogLevel

pkg/lib/logging/errors.go:30–35  ·  view source on GitHub ↗
(provided string, loglevels []string)

Source from the content-addressed store, hash-verified

28)
29
30func ErrorInvalidLogLevel(provided string, loglevels []string) error {
31 return errors.WithStack(&errors.Error{
32 Kind: ErrInvalidLogLevel,
33 Message: fmt.Sprintf("invalid log level %s; must be one of %s", provided, s.StrsOr(loglevels)),
34 })
35}

Callers 1

initializeLoggerFunction · 0.85

Calls 1

WithStackFunction · 0.92

Tested by

no test coverage detected