mirror of
https://github.com/clearlinux/libnetwork.git
synced 2026-09-07 06:11:49 +00:00
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>
This commit is contained in:
committed by
Jana Radhakrishnan
parent
4ded6fe364
commit
d1d67dca84
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user