summaryrefslogtreecommitdiff
path: root/libpod/networking.go
diff options
context:
space:
mode:
authorMatthew Heon <matthew.heon@gmail.com>2017-12-11 12:59:17 -0500
committerAtomic Bot <atomic-devel@projectatomic.io>2017-12-14 23:59:21 +0000
commit08762dcd61566cc77281244ed52ecc87e2737f30 (patch)
tree56d98546cb5996b83e744c48a460e69d996dc8eb /libpod/networking.go
parent840eb04e03e9292c54621c7ff75cbf95e690d86f (diff)
downloadpodman-08762dcd61566cc77281244ed52ecc87e2737f30.tar.gz
podman-08762dcd61566cc77281244ed52ecc87e2737f30.tar.bz2
podman-08762dcd61566cc77281244ed52ecc87e2737f30.zip
Add debugging statements
Signed-off-by: Matthew Heon <matthew.heon@gmail.com> Closes: #109 Approved by: mheon
Diffstat (limited to 'libpod/networking.go')
-rw-r--r--libpod/networking.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/libpod/networking.go b/libpod/networking.go
index 082aae20d..3819d803d 100644
--- a/libpod/networking.go
+++ b/libpod/networking.go
@@ -63,6 +63,8 @@ func (r *Runtime) createNetNS(ctr *Container) (err error) {
}
}()
+ logrus.Debugf("Made network namespace at %s for container %s", ctrNS.Path(), ctr.ID())
+
podNetwork := getPodNetwork(ctr.ID(), ctr.Name(), ctrNS.Path(), ctr.config.PortMappings)
if err := r.netPlugin.SetUpPod(podNetwork); err != nil {
@@ -118,6 +120,8 @@ func (r *Runtime) teardownNetNS(ctr *Container) error {
return nil
}
+ logrus.Debugf("Tearing down network namespace at %s for container %s", ctr.state.NetNS.Path(), ctr.ID())
+
portMappings, err := portMappingToHostport(ctr.config.PortMappings)
if err != nil {
logrus.Errorf("Failed to generate port mappings for container %s: %v", ctr.ID(), err)