Skip to content

Commit

Permalink
Improved protocol debug output.
Browse files Browse the repository at this point in the history
  • Loading branch information
arobenko committed May 28, 2024
1 parent b1c67ca commit b023d92
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/src/Protocol.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ Protocol::MessagesList Protocol::read(
auto messages = readImpl(dataInfo, final);
if (0U < m_debugLevel) {
for (auto& msgPtr : messages) {
std::cout << '[' << milliseconds << "] " << debugPrefix() << " <-- " << msgPtr->name() << std::endl;
std::cout << '[' << milliseconds << "] " << msgPtr->name() << " <-- " << debugPrefix() << std::endl;
}
}

Expand All @@ -103,7 +103,7 @@ DataInfoPtr Protocol::write(Message& msg)
milliseconds = std::chrono::duration_cast<std::chrono::milliseconds>(sinceEpoch).count();
}

std::cout << '[' << milliseconds << "] " << debugPrefix() << " --> " << msg.name() << std::endl;
std::cout << '[' << milliseconds << "] " << msg.name() << " --> " << debugPrefix() << std::endl;
}

if (msg.idAsString().isEmpty()) {
Expand Down

0 comments on commit b023d92

Please sign in to comment.