From 96295af68703da38a2b545cf381e934bec36bf0f Mon Sep 17 00:00:00 2001 From: Michael Crosby Date: Tue, 2 Jun 2015 15:11:32 -0700 Subject: [PATCH] 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 --- libnetwork/portallocator/portallocator.go | 3 --- 1 file changed, 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{