Skip to content

Commit 413cf66

Browse files
committed
fix logger issues
1 parent de8f045 commit 413cf66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cni/network/network.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -903,7 +903,7 @@ func (plugin *NetPlugin) Get(args *cniSkel.CmdArgs) error {
903903

904904
// Query the endpoint.
905905
if epInfo, err = plugin.nm.GetEndpointInfo(networkID, endpointID); err != nil {
906-
plugin.Errorf("Failed to query endpoint: %v", err)
906+
logger.Error("Failed to query endpoint", zap.Error(err))
907907
return err
908908
}
909909

0 commit comments

Comments
 (0)