Skip to content

Commit 8bf0627

Browse files
idsulikglours
authored andcommitted
show sync files only in debug level
Signed-off-by: Suleiman Dibirov <idsulik@gmail.com>
1 parent 2e14191 commit 8bf0627

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

pkg/compose/watch.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -547,8 +547,7 @@ func (s *composeService) handleWatchBatch(ctx context.Context, project *types.Pr
547547

548548
// writeWatchSyncMessage prints out a message about the sync for the changed paths.
549549
func writeWatchSyncMessage(log api.LogConsumer, serviceName string, pathMappings []sync.PathMapping) {
550-
const maxPathsToShow = 10
551-
if len(pathMappings) <= maxPathsToShow || logrus.IsLevelEnabled(logrus.DebugLevel) {
550+
if logrus.IsLevelEnabled(logrus.DebugLevel) {
552551
hostPathsToSync := make([]string, len(pathMappings))
553552
for i := range pathMappings {
554553
hostPathsToSync[i] = pathMappings[i].HostPath

0 commit comments

Comments
 (0)