summaryrefslogtreecommitdiff
path: root/libpod/container_internal.go
diff options
context:
space:
mode:
authorMatthew Heon <matthew.heon@gmail.com>2018-03-15 10:14:57 -0400
committerAtomic Bot <atomic-devel@projectatomic.io>2018-03-15 17:45:11 +0000
commit1856703e38e67ad5ab5e634757fe5fe0ccd34d8e (patch)
tree8bde5e97006fcb7f1d05d2ae5b18d8b13e87b5e4 /libpod/container_internal.go
parentd176e9f781148459fd56fc39cadcc229e565252b (diff)
downloadpodman-1856703e38e67ad5ab5e634757fe5fe0ccd34d8e.tar.gz
podman-1856703e38e67ad5ab5e634757fe5fe0ccd34d8e.tar.bz2
podman-1856703e38e67ad5ab5e634757fe5fe0ccd34d8e.zip
Add additional debug logging
Signed-off-by: Matthew Heon <matthew.heon@gmail.com> Closes: #482 Approved by: baude
Diffstat (limited to 'libpod/container_internal.go')
-rw-r--r--libpod/container_internal.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/libpod/container_internal.go b/libpod/container_internal.go
index 4d1bce787..2ee2174db 100644
--- a/libpod/container_internal.go
+++ b/libpod/container_internal.go
@@ -375,6 +375,8 @@ func (c *Container) init() error {
// Deletes and recreates a container in the runtime
// Should only be done on ContainerStateStopped containers
func (c *Container) reinit() error {
+ logrus.Debugf("Recreating container %s in OCI runtime", c.ID())
+
// If necessary, delete attach and ctl files
if err := c.removeConmonFiles(); err != nil {
return err
@@ -394,6 +396,8 @@ func (c *Container) reinit() error {
return err
}
+ logrus.Debugf("Successfully cleaned up container %s", c.ID())
+
// Initialize the container again
return c.init()
}
@@ -430,6 +434,8 @@ func (c *Container) initAndStart() (err error) {
// If we are ContainerStateStopped we need to remove from runtime
// And reset to ContainerStateConfigured
if c.state.State == ContainerStateStopped {
+ logrus.Debugf("Recreating container %s in OCI runtime", c.ID())
+
// If necessary, delete attach and ctl files
if err := c.removeConmonFiles(); err != nil {
return err