From 7986cf9ec87207461f976f0895e98784846b7ee6 Mon Sep 17 00:00:00 2001 From: Ahrav Dutta Date: Fri, 2 Feb 2024 10:49:19 -0800 Subject: [PATCH] use error not info --- pkg/sources/filesystem/filesystem.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/sources/filesystem/filesystem.go b/pkg/sources/filesystem/filesystem.go index 6f6d3a97eb48..1d3d0cc8b7d7 100644 --- a/pkg/sources/filesystem/filesystem.go +++ b/pkg/sources/filesystem/filesystem.go @@ -137,7 +137,7 @@ func (s *Source) scanDir(ctx context.Context, path string, chunksChan chan *sour workerPool.Go(func() error { if err = s.scanFile(ctx, fullPath, chunksChan); err != nil { - ctx.Logger().Info("error scanning file", "path", fullPath, "error", err) + ctx.Logger().Error(err, "error scanning file", "path", fullPath, "error", err) } return nil })