Skip to content
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

Merged
merged 2 commits into from
May 31, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 3 additions & 0 deletions lte/gateway/c/session_manager/DirectorydClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
*/

#include "lte/gateway/c/session_manager/DirectorydClient.hpp"
#include "lte/gateway/c/session_manager/GrpcMagmaUtils.hpp"

#include <grpcpp/channel.h>
#include <orc8r/protos/common.pb.h>
Expand Down Expand Up @@ -44,6 +45,7 @@ void AsyncDirectorydClient::update_directoryd_record(
std::function<void(Status status, Void)> callback) {
auto local_response =
new AsyncLocalResponse<Void>(std::move(callback), RESPONSE_TIMEOUT);
PrintGrpcMessage(static_cast<const google::protobuf::Message&>(request));
local_response->set_response_reader(stub_->AsyncUpdateRecord(
local_response->get_context(), request, &queue_));
}
Expand All @@ -53,6 +55,7 @@ void AsyncDirectorydClient::delete_directoryd_record(
std::function<void(Status status, Void)> callback) {
auto local_response =
new AsyncLocalResponse<Void>(std::move(callback), RESPONSE_TIMEOUT);
PrintGrpcMessage(static_cast<const google::protobuf::Message&>(request));
local_response->set_response_reader(stub_->AsyncDeleteRecord(
local_response->get_context(), request, &queue_));
}
uri200 marked this conversation as resolved.
Show resolved Hide resolved
Expand Down