mirror of
https://github.com/docker/compose.git
synced 2025-07-27 07:34:10 +02:00
show sync files only in debug level
Signed-off-by: Suleiman Dibirov <idsulik@gmail.com>
This commit is contained in:
parent
2e14191682
commit
8bf0627ea9
@ -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 logrus.IsLevelEnabled(logrus.DebugLevel) {
|
||||||
if len(pathMappings) <= maxPathsToShow || 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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user