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 }