From c5683ca6a3158d340087b88ac5407530f6c8d53c Mon Sep 17 00:00:00 2001 From: Zachary Rice Date: Sun, 1 Jun 2025 12:10:45 -0500 Subject: [PATCH] prevent default warn message when max-archive-depth not set (#1881) --- sources/file.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sources/file.go b/sources/file.go index 946b4b8c..daffbfd6 100644 --- a/sources/file.go +++ b/sources/file.go @@ -55,7 +55,7 @@ func (s *File) Fragments(ctx context.Context, yield FragmentsFunc) error { // and fall back on treating it like a normal file and let fileFragments // decide what to do with it. if err == nil && format != nil { - if s.archiveDepth+1 > s.MaxArchiveDepth { + if (s.archiveDepth+1 > s.MaxArchiveDepth) && s.MaxArchiveDepth != 0 { logging.Warn().Str( "path", s.FullPath(), ).Int(