Skip to content

Commit

Permalink
chore: add ip in error log
Browse files Browse the repository at this point in the history
  • Loading branch information
fioncat committed Aug 1, 2024
1 parent e870cc8 commit 9c833e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/cnivpc/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9c833e2

Please sign in to comment.