New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore(sessiond): GRPC printing #12709
Conversation
Signed-off-by: Vikram G <vikram.gurrappagaru@radisys.com>
Thanks for opening a PR! 💯
Howto
More infoPlease take a moment to read through the Magma project's
If this is your first Magma PR, also consider reading
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @vikramgreddy.
This will print the request
. We will also need to print the response.
Unfortunately the way CPP manages grpc message does not allow us to use the same strategy here, so using your IDE, please search all the instances where those functions are called and print the response. For example here
http://github.com/magma/magma/blob/master/lte/gateway/c/session_manager/SessionProxyResponderHandler.cpp#L78-L78
Also you can try to see the logs running S1AP test and enable grpc printing on sessiond.yml. To do that you could go your vagrant vm and change
To run the test. From your Vagrant VM you will be able to see sessiond logs using
In case you need it, you can add some extra prints to the function and rebuild sessiond to see if they print the message. Note that using s1ap tester will be very useful on the future to test out stuff that can't be tested with unit test |
Signed-off-by: Vikram G <vikram.gurrappagaru@radisys.com>
* chore(sessiond): GRPC printing Signed-off-by: Vikram G <vikram.gurrappagaru@radisys.com>
Signed-off-by: Vikram G vikram.gurrappagaru@radisys.com
Summary
PrintGrpcMessage to DirectorydClient.cpp on request
Test Plan
make integ_test
make test session_manager
Additional Information