mirror of
https://github.com/containers/podman.git
synced 2025-06-22 18:08:11 +08:00
Remove lorgus.Infof on bindings start and attach
We are only doing logrus.Info on a couple of bindings. I see no reason to only do this on a couple, seems like debugging information more then useful to the caller. We had a complaint about this so removing. Fixes: https://github.com/containers/podman/issues/13504 [NO NEW TESTS NEEDED] Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
@ -164,7 +164,7 @@ func pingNewConnection(ctx context.Context) (*semver.Version, error) {
|
||||
if response.StatusCode == http.StatusOK {
|
||||
versionHdr := response.Header.Get("Libpod-API-Version")
|
||||
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
|
||||
}
|
||||
versionSrv, err := semver.ParseTolerant(versionHdr)
|
||||
|
@ -54,8 +54,6 @@ func Attach(ctx context.Context, nameOrID string, stdin io.Reader, stdout io.Wri
|
||||
stderr = (io.Writer)(nil)
|
||||
}
|
||||
|
||||
logrus.Infof("Going to attach to container %q", nameOrID)
|
||||
|
||||
conn, err := bindings.GetClient(ctx)
|
||||
if err != nil {
|
||||
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))
|
||||
}
|
||||
if resizeErr != nil {
|
||||
logrus.Infof("Failed to resize TTY: %v", resizeErr)
|
||||
logrus.Debugf("Failed to resize TTY: %v", resizeErr)
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -13,7 +13,6 @@ import (
|
||||
"github.com/containers/podman/v4/pkg/domain/entities"
|
||||
"github.com/containers/podman/v4/pkg/domain/entities/reports"
|
||||
"github.com/pkg/errors"
|
||||
"github.com/sirupsen/logrus"
|
||||
)
|
||||
|
||||
var (
|
||||
@ -201,7 +200,6 @@ func Start(ctx context.Context, nameOrID string, options *StartOptions) error {
|
||||
if options == nil {
|
||||
options = new(StartOptions)
|
||||
}
|
||||
logrus.Infof("Going to start container %q", nameOrID)
|
||||
conn, err := bindings.GetClient(ctx)
|
||||
if err != nil {
|
||||
return err
|
||||
|
Reference in New Issue
Block a user