From bfcaba33ab4f836b4b22cfefa8ef6aa99a43b3c9 Mon Sep 17 00:00:00 2001 From: Ryan Cavicchioni Date: Sun, 11 Jul 2021 13:42:45 -0500 Subject: [PATCH] Add more output --- ping_server/main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ping_server/main.go b/ping_server/main.go index 0054931..e099c88 100644 --- a/ping_server/main.go +++ b/ping_server/main.go @@ -28,7 +28,8 @@ func Reverse(s string) string { } func (s *server) Ping(ctx context.Context, req *pb.PingRequest) (*pb.PingResponse, error) { - log.Printf("Received: %v", req.Data) + log.Printf("Received: %v seq=%d", req.Data, req.Seq) + log.Printf("Sent: %v seq=%d", Reverse(req.Data), req.Seq) return &pb.PingResponse{Data: Reverse(req.Data), Seq: req.Seq}, nil }