mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Removed printfs
Changed some prints into proper logging, also was missing the \n at the end Signed-off-by: Flavio Crisciani <flavio.crisciani@docker.com>
This commit is contained in:
parent
66c0b8b88b
commit
ae9f1f9f04
1 changed files with 2 additions and 2 deletions
|
@ -222,7 +222,7 @@ func (d *driver) peerDbUpdateSandbox(nid string) {
|
||||||
for pKeyStr, pEntry := range pMap.mp {
|
for pKeyStr, pEntry := range pMap.mp {
|
||||||
var pKey peerKey
|
var pKey peerKey
|
||||||
if _, err := fmt.Sscan(pKeyStr, &pKey); err != nil {
|
if _, err := fmt.Sscan(pKeyStr, &pKey); err != nil {
|
||||||
fmt.Printf("peer key scan failed: %v", err)
|
logrus.Errorf("peer key scan failed: %v", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
if pEntry.isLocal {
|
if pEntry.isLocal {
|
||||||
|
@ -237,7 +237,7 @@ func (d *driver) peerDbUpdateSandbox(nid string) {
|
||||||
if err := d.peerAdd(nid, entry.eid, pKey.peerIP, entry.peerIPMask,
|
if err := d.peerAdd(nid, entry.eid, pKey.peerIP, entry.peerIPMask,
|
||||||
pKey.peerMac, entry.vtep,
|
pKey.peerMac, entry.vtep,
|
||||||
false, false, false); err != nil {
|
false, false, false); err != nil {
|
||||||
fmt.Printf("peerdbupdate in sandbox failed for ip %s and mac %s: %v",
|
logrus.Errorf("peerdbupdate in sandbox failed for ip %s and mac %s: %v",
|
||||||
pKey.peerIP, pKey.peerMac, err)
|
pKey.peerIP, pKey.peerMac, err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue