MCPcopy Create free account
hub / github.com/TheThingsNetwork/lorawan-stack / WithIgnoreMethods

Function WithIgnoreMethods

pkg/rpcmiddleware/rpclog/options.go:87–94  ·  view source on GitHub ↗

WithIgnoreMethods sets a list of methods for which no log messages are printed on success.

(methods []string)

Source from the content-addressed store, hash-verified

85
86// WithIgnoreMethods sets a list of methods for which no log messages are printed on success.
87func WithIgnoreMethods(methods []string) Option {
88 return func(o *options) {
89 for _, entry := range methods {
90 method, cfg := parseMethodLogCfg(entry)
91 o.ignoreMethods[method] = cfg
92 }
93 }
94}
95
96// DefaultCodeToLevel is the default implementation of gRPC return codes and interceptor log level for server side.
97func DefaultCodeToLevel(code codes.Code) log.Level {

Callers 1

NewFunction · 0.92

Calls 1

parseMethodLogCfgFunction · 0.85

Tested by

no test coverage detected