Browse Source

Merge pull request #9783 from mikesir87/9782-remove-confusing-error-output

Remove error message showing exit code when using --exit-code-from
Nick Sieger 3 years ago
parent
commit
3aceaa1694
1 changed files with 0 additions and 3 deletions
  1. 0 3
      pkg/compose/printer.go

+ 0 - 3
pkg/compose/printer.go

@@ -21,8 +21,6 @@ import (
 	"fmt"
 	"fmt"
 
 
 	"github.com/docker/compose/v2/pkg/api"
 	"github.com/docker/compose/v2/pkg/api"
-
-	"github.com/sirupsen/logrus"
 )
 )
 
 
 // logPrinter watch application containers an collect their logs
 // logPrinter watch application containers an collect their logs
@@ -99,7 +97,6 @@ func (p *printer) Run(ctx context.Context, cascadeStop bool, exitCodeFrom string
 						exitCodeFrom = event.Service
 						exitCodeFrom = event.Service
 					}
 					}
 					if exitCodeFrom == event.Service {
 					if exitCodeFrom == event.Service {
-						logrus.Error(event.ExitCode)
 						exitCode = event.ExitCode
 						exitCode = event.ExitCode
 					}
 					}
 				}
 				}