From 9c833e27c67277f70edd78d2f4036657ae8139d5 Mon Sep 17 00:00:00 2001 From: fioncat Date: Thu, 1 Aug 2024 14:08:23 +0800 Subject: [PATCH] chore: add ip in error log --- cmd/cnivpc/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/cnivpc/main.go b/cmd/cnivpc/main.go index dc71558..e32d68b 100644 --- a/cmd/cnivpc/main.go +++ b/cmd/cnivpc/main.go @@ -174,7 +174,7 @@ func cmdAdd(args *skel.CmdArgs) error { err = addPodNetworkRecord(podName, podNS, sandBoxId, pNet) if err != nil { - ulog.Errorf("Record pod network info for %s/%s, sandbox: %s, error: %v", podName, podNS, sandBoxId, err) + ulog.Errorf("Record pod network info for %s/%s, sandbox: %s, ip: %s, error: %v", podName, podNS, sandBoxId, pNet.VPCIP, err) return fmt.Errorf("failed to add pod network record: %v", err) } // Fill result routes