From 8bf0627ea977610b2a5fb234300527ac7bdf2f60 Mon Sep 17 00:00:00 2001 From: Suleiman Dibirov Date: Thu, 12 Sep 2024 15:04:20 +0300 Subject: [PATCH] show sync files only in debug level Signed-off-by: Suleiman Dibirov --- pkg/compose/watch.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/compose/watch.go b/pkg/compose/watch.go index b7beefc59..9ad0567f1 100644 --- a/pkg/compose/watch.go +++ b/pkg/compose/watch.go @@ -547,8 +547,7 @@ func (s *composeService) handleWatchBatch(ctx context.Context, project *types.Pr // writeWatchSyncMessage prints out a message about the sync for the changed paths. func writeWatchSyncMessage(log api.LogConsumer, serviceName string, pathMappings []sync.PathMapping) { - const maxPathsToShow = 10 - if len(pathMappings) <= maxPathsToShow || logrus.IsLevelEnabled(logrus.DebugLevel) { + if logrus.IsLevelEnabled(logrus.DebugLevel) { hostPathsToSync := make([]string, len(pathMappings)) for i := range pathMappings { hostPathsToSync[i] = pathMappings[i].HostPath