Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Commit

Permalink
network: Use correct logger
Browse files Browse the repository at this point in the history
Use the `networkLogger()`, not the network-specific `cnmLogger()`.

Signed-off-by: James O. D. Hunt <[email protected]>
  • Loading branch information
jodh-intel committed Aug 22, 2018
1 parent 90970d9 commit 6ddc9b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions virtcontainers/network.go
Original file line number Diff line number Diff line change
Expand Up @@ -1417,7 +1417,7 @@ func createEndpointsFromScan(networkNSPath string, config NetworkConfig) ([]Endp
}

if isPhysical {
cnmLogger().WithField("interface", netInfo.Iface.Name).Info("Physical network interface found")
networkLogger().WithField("interface", netInfo.Iface.Name).Info("Physical network interface found")
endpoint, err = createPhysicalEndpoint(netInfo)
} else {
var socketPath string
Expand All @@ -1429,7 +1429,7 @@ func createEndpointsFromScan(networkNSPath string, config NetworkConfig) ([]Endp
}

if socketPath != "" {
cnmLogger().WithField("interface", netInfo.Iface.Name).Info("VhostUser network interface found")
networkLogger().WithField("interface", netInfo.Iface.Name).Info("VhostUser network interface found")
endpoint, err = createVhostUserEndpoint(netInfo, socketPath)
} else {
endpoint, err = createVirtualNetworkEndpoint(idx, netInfo.Iface.Name, config.InterworkingModel)
Expand Down

0 comments on commit 6ddc9b4

Please sign in to comment.