Skip to content

Commit

Permalink
fix logging
Browse files Browse the repository at this point in the history
  • Loading branch information
hawkowl committed Jul 4, 2023
1 parent 15691e8 commit 088e109
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion pkg/containerinstall/podman.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"context"
"os"

"github.com/Azure/go-autorest/autorest/to"
"github.com/containers/podman/v4/pkg/bindings"
"github.com/containers/podman/v4/pkg/bindings/containers"
"github.com/containers/podman/v4/pkg/specgen"
Expand Down Expand Up @@ -37,7 +38,13 @@ func getContainerLogs(ctx context.Context, log *logrus.Entry, containerName stri
log.Errorf("stderr: %s", v)
}
}()
err := containers.Logs(ctx, containerName, nil, stdout, stderr)
err := containers.Logs(
ctx,
containerName,
&containers.LogOptions{Stderr: to.BoolPtr(true), Stdout: to.BoolPtr(true)},
stdout,
stderr,
)
return err
}

Expand Down

0 comments on commit 088e109

Please sign in to comment.