From de2749aaed77dc2f1e9f2e29d608df4c9fa86ec6 Mon Sep 17 00:00:00 2001 From: Fabian Klemm Date: Mon, 23 Oct 2023 08:31:15 +0200 Subject: [PATCH] format; correct logging Signed-off-by: Fabian Klemm --- include/ocpp/v201/charge_point.hpp | 1 - lib/ocpp/v201/charge_point.cpp | 11 ++++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/include/ocpp/v201/charge_point.hpp b/include/ocpp/v201/charge_point.hpp index ff74e29b5..56e444e7a 100644 --- a/include/ocpp/v201/charge_point.hpp +++ b/include/ocpp/v201/charge_point.hpp @@ -100,7 +100,6 @@ struct Callbacks { std::optional> configure_network_connection_profile_callback; std::optional> time_sync_callback; - }; /// \brief Class implements OCPP2.0.1 Charging Station diff --git a/lib/ocpp/v201/charge_point.cpp b/lib/ocpp/v201/charge_point.cpp index 2532cf0be..c9af14e3a 100644 --- a/lib/ocpp/v201/charge_point.cpp +++ b/lib/ocpp/v201/charge_point.cpp @@ -163,11 +163,13 @@ void ChargePoint::on_session_started(const int32_t evse_id, const int32_t connec this->evses.at(evse_id)->submit_event(connector_id, ConnectorEvent::PlugIn); } -Get15118EVCertificateResponse ChargePoint::on_get_15118_ev_certificate_request(const Get15118EVCertificateRequest& request) { - EVLOG_info << "Received Get15118EVCertificateRequest " << request; - auto future_res = this->send_async(ocpp::Call(request, this->message_queue->createMessageId())); +Get15118EVCertificateResponse +ChargePoint::on_get_15118_ev_certificate_request(const Get15118EVCertificateRequest& request) { + EVLOG_debug << "Received Get15118EVCertificateRequest " << request; + auto future_res = this->send_async( + ocpp::Call(request, this->message_queue->createMessageId())); const auto response_message = future_res.get(); - EVLOG_info << "Received Get15118EVCertificateResponse " << response_message.message; + EVLOG_debug << "Received Get15118EVCertificateResponse " << response_message.message; if (response_message.messageType != MessageType::Get15118EVCertificateResponse) { Get15118EVCertificateResponse response; response.status = Iso15118EVCertificateStatusEnum::Failed; @@ -176,7 +178,6 @@ Get15118EVCertificateResponse ChargePoint::on_get_15118_ev_certificate_request(c ocpp::CallResult call_result = response_message.message; return call_result.msg; - } void ChargePoint::on_transaction_started(