From 2ffd947fbbe647d564a07cd816b383103077ee84 Mon Sep 17 00:00:00 2001 From: David Alger Date: Fri, 23 Feb 2024 16:07:56 -0600 Subject: [PATCH] Test coverage FileLogger Signed-off-by: David Alger --- internal/logging/log_test.go | 4 ++++ 1 file changed, 4 insertions(+) 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) {