diff --git a/internal/container/level_guesser.go b/internal/container/level_guesser.go index 230a6fcc..b334432c 100644 --- a/internal/container/level_guesser.go +++ b/internal/container/level_guesser.go @@ -13,7 +13,7 @@ var SupportedLogLevels map[string]struct{} // Changing this also needs to change the logContext.ts file var logLevels = [][]string{ {"error", "err"}, - {"warn", "warning"}, + {"warn", "warning", "wrn"}, {"info", "inf"}, {"debug", "dbg"}, {"trace"}, diff --git a/internal/container/level_guesser_test.go b/internal/container/level_guesser_test.go index ead2a1a9..075cba79 100644 --- a/internal/container/level_guesser_test.go +++ b/internal/container/level_guesser_test.go @@ -40,6 +40,7 @@ func TestGuessLogLevel(t *testing.T) { {"DBG with more error=msg", "debug"}, {"inf Something went wrong", "info"}, {"crit: Something went wrong", "fatal"}, + {"[21:01:45] [WRN] this is a test", "warn"}, {orderedmap.New[string, string]( orderedmap.WithInitialData( orderedmap.Pair[string, string]{Key: "key", Value: "value"},