{"record":{"id":"b73d0e602d91df41","repo":"grafana/k6","slug":"invalid-category-filter-q-w","errorCode":null,"errorMessage":"invalid category filter %q: %w","messagePattern":"invalid category filter %q: %w","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"internal/js/modules/k6/browser/log/logger.go","lineNumber":160,"sourceCode":"\t\t\treturn f.Func.Name(), fmt.Sprintf(\"%s:%d\", f.File, f.Line)\n\t\t}\n\t}\n\tl.SetFormatter(&logrus.TextFormatter{\n\t\tCallerPrettyfier: caller(),\n\t\tFieldMap: logrus.FieldMap{\n\t\t\tlogrus.FieldKeyFile: \"caller\",\n\t\t},\n\t})\n\tl.SetReportCaller(true)\n}\n\n// SetCategoryFilter enables filtering logs by the filter regex.\nfunc (l *Logger) SetCategoryFilter(filter string) (err error) {\n\tif filter == \"\" {\n\t\treturn nil\n\t}\n\tif l.categoryFilter, err = regexp.Compile(filter); err != nil {\n\t\treturn fmt.Errorf(\"invalid category filter %q: %w\", filter, err)\n\t}\n\treturn nil\n}\n","sourceCodeStart":142,"sourceCodeEnd":164,"githubUrl":"https://github.com/grafana/k6/blob/93accf6570dcd306ca5e99cc44c393ee3797761b/internal/js/modules/k6/browser/log/logger.go#L142-L164","documentation":"Error \"invalid category filter %q: %w\" thrown in grafana/k6.","triggerScenarios":"Thrown at internal/js/modules/k6/browser/log/logger.go:160 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"93accf6570dcd306ca5e99cc44c393ee3797761b","analyzedAt":"2026-08-15T21:23:27.118Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}