summaryrefslogtreecommitdiff
path: root/libpod
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-01-02 10:56:49 -0800
committerGitHub <noreply@github.com>2019-01-02 10:56:49 -0800
commita634d5559f3021ff117e6dc0e4ca879c434f11ba (patch)
treed84282965d6a61ed1b2f69439a969d56667d38c0 /libpod
parente796f522f6b74a9fef16976709e773f6395ef5e2 (diff)
parent945d0e8700d3e3ce14307f7d8e5b918dc13ec9e9 (diff)
downloadpodman-a634d5559f3021ff117e6dc0e4ca879c434f11ba.tar.gz
podman-a634d5559f3021ff117e6dc0e4ca879c434f11ba.tar.bz2
podman-a634d5559f3021ff117e6dc0e4ca879c434f11ba.zip
Merge pull request #2068 from mheon/log_container_command
Log container command before starting the container
Diffstat (limited to 'libpod')
-rw-r--r--libpod/container_internal.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/libpod/container_internal.go b/libpod/container_internal.go
index 928be52ae..6c027f59a 100644
--- a/libpod/container_internal.go
+++ b/libpod/container_internal.go
@@ -748,6 +748,10 @@ func (c *Container) initAndStart(ctx context.Context) (err error) {
// Internal, non-locking function to start a container
func (c *Container) start() error {
+ if c.config.Spec.Process != nil {
+ logrus.Debugf("Starting container %s with command %v", c.ID(), c.config.Spec.Process.Args)
+ }
+
if err := c.runtime.ociRuntime.startContainer(c); err != nil {
return err
}