1
0
mirror of https://github.com/amir20/dozzle.git synced 2025-12-21 13:23:07 +01:00

feat: supports wrn level. see #3984 (#3985)

This commit is contained in:
Amir Raminfar
2025-06-16 09:12:07 -07:00
committed by GitHub
parent c1955a3301
commit 633d794539
2 changed files with 2 additions and 1 deletions

View File

@@ -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"},

View File

@@ -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"},