diff --git a/src/navigation.cpp b/src/navigation.cpp index 01559f7..38f8ff1 100644 --- a/src/navigation.cpp +++ b/src/navigation.cpp @@ -46,11 +46,11 @@ bool Navigation::callSlamService(int api_id, const nlohmann::json& data) { try { nlohmann::json response_json = nlohmann::json::parse(response_str); if (response_json.contains("succeed") && response_json["succeed"].get()) { - LOG_INFO("Slam service call for api_id " + std::to_string(api_id) + " succeeded. Info: " + response_json.value("info", "").get()); + LOG_INFO("Slam service call for api_id " + std::to_string(api_id) + " succeeded. Info: " + response_json.value("info", "")); return true; } else { LOG_ERROR("Slam service call for api_id " + std::to_string(api_id) + " failed. Error code: " + - std::to_string(response_json.value("errorCode", -1).get()) + ", Info: " + response_json.value("info", "").get()); + std::to_string(response_json.value("errorCode", -1)) + ", Info: " + response_json.value("info", "")); return false; } } catch (const nlohmann::json::parse_error& e) {