From 27d30ba8e911aadedb6707ab3208b50065dc25fb Mon Sep 17 00:00:00 2001 From: Evan Phoenix Date: Mon, 10 May 2021 13:42:29 -0700 Subject: [PATCH] Fix slicing. Fixes #88 --- stdlog.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlog.go b/stdlog.go index f35d875..271d546 100644 --- a/stdlog.go +++ b/stdlog.go @@ -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]"):