소스 검색

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>
Michael Crosby 10 년 전
부모
커밋
96295af687
1개의 변경된 파일0개의 추가작업 그리고 3개의 파일을 삭제
  1. 0 3
      libnetwork/portallocator/portallocator.go

+ 0 - 3
libnetwork/portallocator/portallocator.go

@@ -7,8 +7,6 @@ import (
 	"net"
 	"net"
 	"os"
 	"os"
 	"sync"
 	"sync"
-
-	"github.com/Sirupsen/logrus"
 )
 )
 
 
 const (
 const (
@@ -94,7 +92,6 @@ func Get() *PortAllocator {
 func newInstance() *PortAllocator {
 func newInstance() *PortAllocator {
 	start, end, err := getDynamicPortRange()
 	start, end, err := getDynamicPortRange()
 	if err != nil {
 	if err != nil {
-		logrus.Warn(err)
 		start, end = DefaultPortRangeStart, DefaultPortRangeEnd
 		start, end = DefaultPortRangeStart, DefaultPortRangeEnd
 	}
 	}
 	return &PortAllocator{
 	return &PortAllocator{