MCPcopy
hub / github.com/cortesi/devd / AddIgnores

Method AddIgnores

server.go:228–238  ·  view source on GitHub ↗

AddIgnores adds log ignore patterns to the server

(specs []string)

Source from the content-addressed store, hash-verified

226
227// AddIgnores adds log ignore patterns to the server
228func (dd *Devd) AddIgnores(specs []string) error {
229 dd.IgnoreLogs = make([]*regexp.Regexp, 0, 0)
230 for _, expr := range specs {
231 v, err := regexp.Compile(expr)
232 if err != nil {
233 return fmt.Errorf("%s", err)
234 }
235 dd.IgnoreLogs = append(dd.IgnoreLogs, v)
236 }
237 return nil
238}
239
240// HandleNotFound handles pages not found. In particular, this handler is used
241// when we have no matching route for a request. This also means it's not

Callers 1

mainFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected