diff --git a/src/datadog/datadog_agent.cpp b/src/datadog/datadog_agent.cpp index 481aa0b3..dcb7dc32 100644 --- a/src/datadog/datadog_agent.cpp +++ b/src/datadog/datadog_agent.cpp @@ -339,8 +339,8 @@ void DatadogAgent::send_app_started(nlohmann::json&& tracer_config) { telemetry_endpoint_, telemetry_set_request_headers_, std::move(payload), telemetry_on_response_, telemetry_on_error_); if (auto* error = post_result.if_error()) { - logger_->log_error( - error->with_prefix("Unexpected error submitting telemetry app-started event: ")); + logger_->log_error(error->with_prefix( + "Unexpected error submitting telemetry app-started event: ")); } } @@ -350,8 +350,8 @@ void DatadogAgent::send_heartbeat_and_telemetry() { telemetry_endpoint_, telemetry_set_request_headers_, std::move(payload), telemetry_on_response_, telemetry_on_error_); if (auto* error = post_result.if_error()) { - logger_->log_error( - error->with_prefix("Unexpected error submitting telemetry app-heartbeat event: ")); + logger_->log_error(error->with_prefix( + "Unexpected error submitting telemetry app-heartbeat event: ")); } } @@ -361,8 +361,8 @@ void DatadogAgent::send_app_closing() { telemetry_endpoint_, telemetry_set_request_headers_, std::move(payload), telemetry_on_response_, telemetry_on_error_); if (auto* error = post_result.if_error()) { - logger_->log_error( - error->with_prefix("Unexpected error submitting telemetry app-closing event: ")); + logger_->log_error(error->with_prefix( + "Unexpected error submitting telemetry app-closing event: ")); } }