From 3a8fed27abed525d388c1c6d0c15a4746a36d5bf Mon Sep 17 00:00:00 2001 From: Saikrishna Edupuganti Date: Wed, 9 Dec 2020 13:10:34 +0000 Subject: [PATCH] Print err instead of cr.error Same fix as #174 Signed-off-by: Saikrishna Edupuganti --- pfcpiface/upf.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pfcpiface/upf.go b/pfcpiface/upf.go index 48d187dd7..88f24a897 100644 --- a/pfcpiface/upf.go +++ b/pfcpiface/upf.go @@ -343,13 +343,13 @@ func (u *upf) processPDR(ctx context.Context, any *anypb.Any, method string) { return } - cr, err := u.client.ModuleCommand(ctx, &pb.CommandRequest{ + _, err := u.client.ModuleCommand(ctx, &pb.CommandRequest{ Name: "pdrLookup", Cmd: method, Arg: any, }) if err != nil { - log.Println("pdrLookup method failed!:", cr.Error) + log.Println("pdrLookup method failed!:", err) } }