Skip to content

Commit

Permalink
Update curl_client.h
Browse files Browse the repository at this point in the history
Fixed bug with project building with catkin_make on ROS Melodic.
  • Loading branch information
mrob-lab authored Nov 26, 2023
1 parent 2898060 commit 29ed3d0
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions ouster_client/src/curl_client.h
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,10 @@ class CurlClient : public ouster::util::HttpClient {
if (attempts && 500 <= http_code && http_code < 600) {
// HTTP 5XX means a server error, so we should re-attempt.
// log a warning and sleep before re-attempting
ouster::sensor::logger().warn(
std::string("Re-attempting CurlClient::execute_get after "
"failure for url: ") +
"[{}] with the code: [{}] - and return: {}",
url, http_code, buffer);
std::this_thread::sleep_for(
ouster::sensor::logger().warn(
"Re-attempting CurlClient::execute_get after failure for url: [{}] with the code: [{}] - and return: {}",
url, http_code, buffer);
std::this_thread::sleep_for(
std::chrono::milliseconds(retry_delay_ms));
}
}
Expand Down

0 comments on commit 29ed3d0

Please sign in to comment.