diff --git a/.vscode/settings.json b/.vscode/settings.json index 68119a6..579651f 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -14,7 +14,7 @@ "editor.insertSpaces": false, "editor.formatOnSave": true, "editor.codeActionsOnSave": { - "source.organizeImports": true + "source.organizeImports": "always" } }, diff --git a/internal/log/logging_test.go b/internal/log/logging_test.go index fc0dbfb..ca6c10f 100644 --- a/internal/log/logging_test.go +++ b/internal/log/logging_test.go @@ -20,6 +20,8 @@ func slogToBuffer() (*bytes.Buffer, *slog.Logger) { } func TestSetLogLevel(t *testing.T) { + Init("text") + for _, i := range []int{0, 21, 41, 61, 81, 101} { SetNumericLevel(i)