diff --git a/internal/logging/log_test.go b/internal/logging/log_test.go index 788d47cc3ac..756e4e39318 100644 --- a/internal/logging/log_test.go +++ b/internal/logging/log_test.go @@ -41,6 +41,10 @@ func TestLogger(t *testing.T) { defaultLogger := DefaultLogger(v1alpha1.LogLevelInfo) assert.NotNil(t, defaultLogger.logging) assert.NotNil(t, defaultLogger.sugaredLogger) + + fileLogger := FileLogger("/dev/stderr", "fl-test", v1alpha1.LogLevelInfo) + assert.NotNil(t, fileLogger.logging) + assert.NotNil(t, fileLogger.sugaredLogger) } func TestLoggerWithName(t *testing.T) {