mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-07-04 11:06:21 +00:00
network: Use correct logger
Use the `networkLogger()`, not the network-specific `cnmLogger()`. Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
This commit is contained in:
parent
90970d94c0
commit
6ddc9b4e8e
@ -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
|
||||
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user