File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -64,13 +64,15 @@ bool OccLite::nopb::JsonMessage::Deserialize(::grpc::ByteBuffer* byte_buffer)
6464 auto rawSlice = (*slices)[0 ].c_slice ();
6565 std::string str = grpc::StringFromCopiedSlice (rawSlice);
6666 ::grpc::g_core_codegen_interface->grpc_slice_unref (rawSlice);
67+ OLOG (info) << " Deserializing Message:\n " << str;
6768
6869 return Deserialize (str);
6970}
7071
7172::grpc::ByteBuffer* OccLite::nopb::JsonMessage::SerializeToByteBuffer () const
7273{
7374 std::string str = Serialize ();
75+ OLOG (info) << " Serialized Message:\n " << str;
7476
7577 // grpc::string = std::string
7678 // We build a Slice(grpc::string) and we add it to the ByteBuffer
Original file line number Diff line number Diff line change @@ -41,8 +41,11 @@ bool OccLite::nopb::TransitionRequest::Serialize(rapidjson::Writer<rapidjson::St
4141
4242bool OccLite::nopb::TransitionRequest::Deserialize (const rapidjson::Value& obj)
4343{
44+ OLOG (info) << " Deserializing TransitionRequest" ;
45+
4446 srcState = obj[" srcState" ].GetString ();
4547 transitionEvent = obj[" transitionEvent" ].GetString ();
48+ OLOG (info) << " state and transitionEvent ok" ;
4649
4750 if (obj.HasMember (" arguments" )) {
4851 auto array = obj[" arguments" ].GetArray ();
You can’t perform that action at this time.
0 commit comments