From fd832a07a89f4ed30d93ff7653df7c828fd04c73 Mon Sep 17 00:00:00 2001 From: Frank Elsinga Date: Sun, 27 Aug 2023 20:37:12 +0200 Subject: [PATCH] minor renaming --- client/localServer/localTestClient.go | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/client/localServer/localTestClient.go b/client/localServer/localTestClient.go index 7f48dc50..ad6f3e04 100644 --- a/client/localServer/localTestClient.go +++ b/client/localServer/localTestClient.go @@ -15,8 +15,7 @@ const ( testImage = "./localServer/images/sampleimage.jpeg" ) -// main connects to a seperatly started local server and creates ratings for both, cafeterias and dishes. -// Afterwards, they are queried and displayed on the console +// main connects to a separately started local server an allows to test things func main() { // Set up a connection to the local server. log.Info("Connecting...") @@ -30,7 +29,7 @@ func main() { defer cancel() // add your test here - x, err := c.SendFeedback(ctx, &pb.SendFeedbackRequest{ + feedback, err := c.SendFeedback(ctx, &pb.SendFeedbackRequest{ Topic: "tca", Email: "frank@elsinga.de", EmailId: "magic id", @@ -40,9 +39,8 @@ func main() { AppVersion: "v2", }) if err != nil { - log.WithError(err).Error("error occurred") + log.WithError(err).Error("error sending feedback occurred") } else { - log.Info("Success") - log.Info(x) + log.Info("Success %s", feedback.Status) } }