summaryrefslogtreecommitdiff
path: root/libnetwork/portallocator
diff options
context:
space:
mode:
authorMichael Crosby <crosbymichael@gmail.com>2015-06-02 15:11:32 -0700
committerMichael Crosby <crosbymichael@gmail.com>2015-06-02 15:11:32 -0700
commit96295af68703da38a2b545cf381e934bec36bf0f (patch)
tree35dbce08466e9eabfaaa60ac494b55703bb0ac35 /libnetwork/portallocator
parent5169fdaa3f783ac9f06beb7c385f9a176553b817 (diff)
downloaddocker-96295af68703da38a2b545cf381e934bec36bf0f.tar.gz
Do not warn in packages
Do not have log output in packages that applications consume because the output can mess with logs, stdout/stderr of applications and such and there is nothing that the consumer can do about it other than change the package that they are using. Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
Diffstat (limited to 'libnetwork/portallocator')
-rw-r--r--libnetwork/portallocator/portallocator.go3
1 files changed, 0 insertions, 3 deletions
diff --git a/libnetwork/portallocator/portallocator.go b/libnetwork/portallocator/portallocator.go
index 84b07b2523..293cc92e09 100644
--- a/libnetwork/portallocator/portallocator.go
+++ b/libnetwork/portallocator/portallocator.go
@@ -7,8 +7,6 @@ import (
"net"
"os"
"sync"
-
- "github.com/Sirupsen/logrus"
)
const (
@@ -94,7 +92,6 @@ func Get() *PortAllocator {
func newInstance() *PortAllocator {
start, end, err := getDynamicPortRange()
if err != nil {
- logrus.Warn(err)
start, end = DefaultPortRangeStart, DefaultPortRangeEnd
}
return &PortAllocator{