Merge pull request #14660 from rhatdan/bindings

Remove logrus.Infof on bindings start and attach
This commit is contained in:
openshift-ci[bot] 2022-06-22 13:02:35 +00:00 committed by GitHub
commit 2382955c6a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 6 deletions

View File

@ -164,7 +164,7 @@ func pingNewConnection(ctx context.Context) (*semver.Version, error) {
if response.StatusCode == http.StatusOK { if response.StatusCode == http.StatusOK {
versionHdr := response.Header.Get("Libpod-API-Version") versionHdr := response.Header.Get("Libpod-API-Version")
if versionHdr == "" { if versionHdr == "" {
logrus.Info("Service did not provide Libpod-API-Version Header") logrus.Warn("Service did not provide Libpod-API-Version Header")
return new(semver.Version), nil return new(semver.Version), nil
} }
versionSrv, err := semver.ParseTolerant(versionHdr) versionSrv, err := semver.ParseTolerant(versionHdr)

View File

@ -54,8 +54,6 @@ func Attach(ctx context.Context, nameOrID string, stdin io.Reader, stdout io.Wri
stderr = (io.Writer)(nil) stderr = (io.Writer)(nil)
} }
logrus.Infof("Going to attach to container %q", nameOrID)
conn, err := bindings.GetClient(ctx) conn, err := bindings.GetClient(ctx)
if err != nil { if err != nil {
return err return err
@ -357,7 +355,7 @@ func attachHandleResize(ctx, winCtx context.Context, winChange chan os.Signal, i
resizeErr = ResizeContainerTTY(ctx, id, new(ResizeTTYOptions).WithHeight(h).WithWidth(w)) resizeErr = ResizeContainerTTY(ctx, id, new(ResizeTTYOptions).WithHeight(h).WithWidth(w))
} }
if resizeErr != nil { if resizeErr != nil {
logrus.Infof("Failed to resize TTY: %v", resizeErr) logrus.Debugf("Failed to resize TTY: %v", resizeErr)
} }
} }

View File

@ -13,7 +13,6 @@ import (
"github.com/containers/podman/v4/pkg/domain/entities" "github.com/containers/podman/v4/pkg/domain/entities"
"github.com/containers/podman/v4/pkg/domain/entities/reports" "github.com/containers/podman/v4/pkg/domain/entities/reports"
"github.com/pkg/errors" "github.com/pkg/errors"
"github.com/sirupsen/logrus"
) )
var ( var (
@ -201,7 +200,6 @@ func Start(ctx context.Context, nameOrID string, options *StartOptions) error {
if options == nil { if options == nil {
options = new(StartOptions) options = new(StartOptions)
} }
logrus.Infof("Going to start container %q", nameOrID)
conn, err := bindings.GetClient(ctx) conn, err := bindings.GetClient(ctx)
if err != nil { if err != nil {
return err return err