Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions 8 occ/plugin/OccLiteServer.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -79,14 +79,14 @@ ::grpc::Status OccLite::Service::GetState(::grpc::ServerContext* context,
(void) context;
(void) request;

OLOG(info) << "Incoming GetState request: " << request->JsonMessage::Serialize();
OLOG(detail) << "Incoming GetState request: " << request->JsonMessage::Serialize();

auto state = fair::mq::PluginServices::ToStr(m_pluginServices->GetCurrentDeviceState());
pid_t pid = getpid();

response->state = state;
response->pid = pid;
OLOG(info) << "GetState response: " << response->state;
OLOG(detail) << "GetState response: " << response->state;

return grpc::Status::OK;
}
Expand All @@ -95,7 +95,7 @@ ::grpc::Status OccLite::Service::Transition(::grpc::ServerContext* context,
const OccLite::nopb::TransitionRequest* request,
OccLite::nopb::TransitionResponse* response)
{
OLOG(info) << "Incoming Transition request: " << request->JsonMessage::Serialize();
OLOG(detail) << "Incoming Transition request: " << request->JsonMessage::Serialize();

auto transitionOutcome = doTransition(m_pluginServices, *request);
::grpc::Status grpcStatus = std::get<1>(transitionOutcome);
Expand All @@ -106,7 +106,7 @@ ::grpc::Status OccLite::Service::Transition(::grpc::ServerContext* context,

auto nopbResponse = std::get<0>(transitionOutcome);
*response = nopbResponse;
OLOG(info) << "Transition response: " << response->state << " ok: " << response->ok;
OLOG(detail) << "Transition response: " << response->state << " ok: " << response->ok;

return grpc::Status::OK;
}
Expand Down
6 changes: 3 additions & 3 deletions 6 occ/plugin/litestructs/JsonMessage.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ bool OccLite::nopb::JsonMessage::Deserialize(::grpc::ByteBuffer* byte_buffer)
auto status = byte_buffer->Dump(slices);

if (!status.ok()) {
OLOG(info) << "Cannot dump JsonMessage slices, error code " << status.error_code() << " " << status.error_message() << " " << status.error_details();
OLOG(error) << "Cannot dump JsonMessage slices, error code " << status.error_code() << " " << status.error_message() << " " << status.error_details();
return false;
}

Expand All @@ -74,15 +74,15 @@ bool OccLite::nopb::JsonMessage::Deserialize(::grpc::ByteBuffer* byte_buffer)
::grpc::g_core_codegen_interface->grpc_slice_unref(rawSlice);
}

OLOG(info) << "Deserialized JsonMessage: " << ss.str();
OLOG(detail) << "Deserialized JsonMessage: " << ss.str();

return Deserialize(ss.str());
}

::grpc::ByteBuffer* OccLite::nopb::JsonMessage::SerializeToByteBuffer() const
{
std::string str = Serialize();
OLOG(info) << "Serialized JsonMessage: " << str;
OLOG(detail) << "Serialized JsonMessage: " << str;

// grpc::string = std::string
// We build a Slice(grpc::string) and we add it to the ByteBuffer
Expand Down
2 changes: 1 addition & 1 deletion 2 occ/plugin/litestructs/Transition.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ bool OccLite::nopb::TransitionRequest::Deserialize(const rapidjson::Value& obj)
arguments.push_back(*ce);
}
}
OLOG(info) << "Deserialized TransitionRequest: " << JsonMessage::Serialize();
OLOG(detail) << "Deserialized TransitionRequest: " << JsonMessage::Serialize();

return true;
}
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.