fixup logging changes, so it compiles
This commit is contained in:
1 parent
e25d1b8365
commit
5b79e274e8
2 files changed
+4
-4
No files matched your search
@@ -9,7 +9,7 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/fsouza/go-dockerclient"
|
"github.com/fsouza/go-dockerclient"
|
||||||
. "github.com/weaveworks/weave/common"
|
"github.com/weaveworks/weave/common"
|
||||||
"github.com/weaveworks/weave/nameserver"
|
"github.com/weaveworks/weave/nameserver"
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -47,7 +47,7 @@ func (i *createContainerInterceptor) InterceptRequest(r *http.Request) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if cidrs, ok := i.proxy.weaveCIDRsFromConfig(container.Config); ok {
|
if cidrs, ok := i.proxy.weaveCIDRsFromConfig(container.Config); ok {
|
||||||
Log.Infof("Creating container with WEAVE_CIDR \"%s\"", strings.Join(cidrs, " "))
|
common.Log.Infof("Creating container with WEAVE_CIDR \"%s\"", strings.Join(cidrs, " "))
|
||||||
if container.HostConfig == nil {
|
if container.HostConfig == nil {
|
||||||
container.HostConfig = &docker.HostConfig{}
|
container.HostConfig = &docker.HostConfig{}
|
||||||
}
|
}
|
||||||
@@ -114,7 +114,7 @@ func (i *createContainerInterceptor) setWeaveDNS(container *createContainerReque
|
|||||||
// Strip trailing period because it's unusual to see it used on the end of a host name
|
// Strip trailing period because it's unusual to see it used on the end of a host name
|
||||||
trimmedDNSDomain := strings.TrimSuffix(dnsDomain, ".")
|
trimmedDNSDomain := strings.TrimSuffix(dnsDomain, ".")
|
||||||
if len(name)+1+len(trimmedDNSDomain) > MaxDockerHostname {
|
if len(name)+1+len(trimmedDNSDomain) > MaxDockerHostname {
|
||||||
Warning.Printf("Container name [%s] too long to be used as hostname", name)
|
common.Log.Warningf("Container name [%s] too long to be used as hostname", name)
|
||||||
} else {
|
} else {
|
||||||
container.Hostname = name
|
container.Hostname = name
|
||||||
container.Domainname = trimmedDNSDomain
|
container.Domainname = trimmedDNSDomain
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ func (peer *LocalPeer) RelayBroadcast(srcPeer *Peer, frame []byte, dec *Ethernet
|
|||||||
dec)
|
dec)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
if ftbe, ok := err.(FrameTooBigError); ok {
|
if ftbe, ok := err.(FrameTooBigError); ok {
|
||||||
Log.Warnf("dropping too big DF broadcast frame (%v -> %v): PMTU= %v\n", dec.IP.DstIP, dec.IP.SrcIP, ftbe.EPMTU)
|
Log.Warningf("dropping too big DF broadcast frame (%v -> %v): PMTU= %v\n", dec.IP.DstIP, dec.IP.SrcIP, ftbe.EPMTU)
|
||||||
} else {
|
} else {
|
||||||
Log.Errorln(err)
|
Log.Errorln(err)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user