Skip to content

Commit

Permalink
More debug output
Browse files Browse the repository at this point in the history
  • Loading branch information
urfeex committed Nov 13, 2024
1 parent 68120fe commit 9f9d2f6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ur/dashboard_client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ std::string DashboardClient::sendRequestString(const std::string& command, const
bool DashboardClient::waitForReply(const std::string& command, const std::string& expected,
const std::chrono::duration<double> timeout)
{
URCL_LOG_DEBUG("Waiting for answer for command: %s", command.c_str());
const std::chrono::duration<double> wait_period = 100ms;

std::chrono::duration<double> time_done(0);
Expand All @@ -189,6 +190,7 @@ bool DashboardClient::waitForReply(const std::string& command, const std::string
{
// Send the request
response = sendAndReceive(command);
URCL_LOG_DEBUG("Received: %s", response.c_str());

// Check if the response was as expected
if (std::regex_match(response, std::regex(expected)))
Expand Down

0 comments on commit 9f9d2f6

Please sign in to comment.