{"record":{"id":"2d47f34cd9e9e71e","repo":"grafana/k6","slug":"unknown-log-level-s","errorCode":null,"errorMessage":"unknown log level %s","messagePattern":"unknown log level (.+?)","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"internal/log/levels.go","lineNumber":13,"sourceCode":"package log\n\nimport (\n\t\"fmt\"\n\t\"sort\"\n\n\t\"github.com/sirupsen/logrus\"\n)\n\nfunc parseLevels(level string) ([]logrus.Level, error) {\n\tlvl, err := logrus.ParseLevel(level)\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"unknown log level %s\", level) // specifically use a custom error\n\t}\n\tindex := sort.Search(len(logrus.AllLevels), func(i int) bool {\n\t\treturn logrus.AllLevels[i] > lvl\n\t})\n\n\treturn logrus.AllLevels[:index], nil\n}\n","sourceCodeStart":1,"sourceCodeEnd":21,"githubUrl":"https://github.com/grafana/k6/blob/01ffac6f245854c1b8adc6a69857c76a15f90022/internal/log/levels.go#L1-L21","documentation":"A validation guard in parseLevels: logrus.ParseLevel rejected the level string, so a custom error is returned instead. Accepted values are panic, fatal, error, warn, info, debug, trace. The at-fault input is the unrecognized level string from the log configuration.","triggerScenarios":"Thrown at internal/log/levels.go:13 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use one of: panic, fatal, error, warn, info, debug, trace","Check for typos and case (e.g. 'warning' instead of 'warn', uppercase letters)"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"01ffac6f245854c1b8adc6a69857c76a15f90022","analyzedAt":"2026-08-18T03:05:52.393Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}