Skip to content

Commit

Permalink
Merge pull request #94 from hashicorp/bug/warn
Browse files Browse the repository at this point in the history
Fix slicing. Fixes #88
  • Loading branch information
evanphx authored May 10, 2021
2 parents 1700dc1 + 27d30ba commit f07802e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stdlog.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ func (s *stdlogAdapter) pickLevel(str string) (Level, string) {
case strings.HasPrefix(str, "[INFO]"):
return Info, strings.TrimSpace(str[6:])
case strings.HasPrefix(str, "[WARN]"):
return Warn, strings.TrimSpace(str[7:])
return Warn, strings.TrimSpace(str[6:])
case strings.HasPrefix(str, "[ERROR]"):
return Error, strings.TrimSpace(str[7:])
case strings.HasPrefix(str, "[ERR]"):
Expand Down

0 comments on commit f07802e

Please sign in to comment.