cosmetic: some error logging message tweaks

This commit is contained in:
Matthias Radestock committed 2016-03-24 18:16:57 +00:00
1 parent c146ee142d
commit ea11c5eedc
2 files changed
+5 -5

No files matched your search

+2 -2
View File
@@ -113,7 +113,7 @@ func (driver *driver) JoinEndpoint(j *api.JoinRequest) (*api.JoinResponse, error
}
if err := netlink.LinkSetUp(local); err != nil {
return nil, errorf(`unable to bring veth up: %s`, err)
return nil, errorf(`unable to bring up veth: %s`, err)
}
ifname := &api.InterfaceName{
@@ -171,7 +171,7 @@ func createAndAttach(id, bridgeName string, mtu int) (*netlink.Veth, error) {
return nil, errorf(`failed to attach "%s" to device "%s": %s`, local.Name, bridgeName, err)
}
default:
return nil, errorf(`device "%s" not a bridge`, bridgeName)
return nil, errorf(`device "%s" is not a bridge`, bridgeName)
}
return local, nil
}
+3 -3
View File
@@ -27,10 +27,10 @@ func NewWatcher(client *docker.Client, weave *weaveapi.Client, driver *driver) (
}
func (w *watcher) ContainerStarted(id string) {
Log.Debugf("Container started %s", id)
Log.Debugf("Container %s started", id)
info, err := w.client.InspectContainer(id)
if err != nil {
Log.Warningf("error inspecting container: %s", err)
Log.Warningf("error inspecting container %s: %s", id, err)
return
}
// check that it's on our network, via the endpointID
@@ -38,7 +38,7 @@ func (w *watcher) ContainerStarted(id string) {
if w.driver.HasEndpoint(net.EndpointID) {
fqdn := fmt.Sprintf("%s.%s", info.Config.Hostname, info.Config.Domainname)
if err := w.weave.RegisterWithDNS(id, fqdn, net.IPAddress); err != nil {
Log.Warningf("unable to register with weaveDNS: %s", err)
Log.Warningf("unable to register %s with weaveDNS: %s", id, err)
}
}
}