good morning!!!!

Skip to content
Snippets Groups Projects
Commit 161f59bb authored by alex.sharov's avatar alex.sharov
Browse files

less warnings

parent 6336f9ab
No related branches found
No related tags found
No related merge requests found
...@@ -106,7 +106,7 @@ func Map(m Interface, c <-chan struct{}, protocol string, extport, intport int, ...@@ -106,7 +106,7 @@ func Map(m Interface, c <-chan struct{}, protocol string, extport, intport int,
m.DeleteMapping(protocol, extport, intport) m.DeleteMapping(protocol, extport, intport)
}() }()
if err := m.AddMapping(protocol, extport, intport, name, mapTimeout); err != nil { if err := m.AddMapping(protocol, extport, intport, name, mapTimeout); err != nil {
log.Warn("Couldn't add port mapping", "err", err) log.Debug("Couldn't add port mapping", "err", err)
} else { } else {
log.Info("Mapped network port") log.Info("Mapped network port")
} }
...@@ -119,7 +119,7 @@ func Map(m Interface, c <-chan struct{}, protocol string, extport, intport int, ...@@ -119,7 +119,7 @@ func Map(m Interface, c <-chan struct{}, protocol string, extport, intport int,
case <-refresh.C: case <-refresh.C:
log.Trace("Refreshing port mapping") log.Trace("Refreshing port mapping")
if err := m.AddMapping(protocol, extport, intport, name, mapTimeout); err != nil { if err := m.AddMapping(protocol, extport, intport, name, mapTimeout); err != nil {
log.Warn("Couldn't add port mapping", "err", err) log.Debug("Couldn't add port mapping", "err", err)
} }
refresh.Reset(mapTimeout) refresh.Reset(mapTimeout)
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment