Просмотр исходного кода

show sync files only in debug level

Signed-off-by: Suleiman Dibirov <[email protected]>
Suleiman Dibirov 1 год назад
Родитель
Сommit
8bf0627ea9
1 измененных файлов с 1 добавлено и 2 удалено
  1. 1 2
      pkg/compose/watch.go

+ 1 - 2
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.
 // writeWatchSyncMessage prints out a message about the sync for the changed paths.
 func writeWatchSyncMessage(log api.LogConsumer, serviceName string, pathMappings []sync.PathMapping) {
 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))
 		hostPathsToSync := make([]string, len(pathMappings))
 		for i := range pathMappings {
 		for i := range pathMappings {
 			hostPathsToSync[i] = pathMappings[i].HostPath
 			hostPathsToSync[i] = pathMappings[i].HostPath