diff options
| author | Michael Crosby <crosbymichael@gmail.com> | 2015-06-02 15:11:32 -0700 |
|---|---|---|
| committer | Michael Crosby <crosbymichael@gmail.com> | 2015-06-02 15:11:32 -0700 |
| commit | 96295af68703da38a2b545cf381e934bec36bf0f (patch) | |
| tree | 35dbce08466e9eabfaaa60ac494b55703bb0ac35 /libnetwork/portallocator | |
| parent | 5169fdaa3f783ac9f06beb7c385f9a176553b817 (diff) | |
| download | docker-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.go | 3 |
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{ |
