From a157ad5a0593c09e0f6ed9760b9a3a656d1f08f1 Mon Sep 17 00:00:00 2001 From: Stephane Triomphe Date: Fri, 14 Mar 2025 14:06:17 +0100 Subject: [PATCH] Reduce number of default log message for proto to send Size info can be log in the callback with other info. --- lib/wpc_proto/internal_modules/proto_config.c | 4 ++-- lib/wpc_proto/internal_modules/proto_data.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/wpc_proto/internal_modules/proto_config.c b/lib/wpc_proto/internal_modules/proto_config.c index fecc481..14ada6b 100644 --- a/lib/wpc_proto/internal_modules/proto_config.c +++ b/lib/wpc_proto/internal_modules/proto_config.c @@ -542,7 +542,7 @@ static void onStackStatusReceived(uint8_t status) } else { - LOGI("Msg size %d\n", stream.bytes_written); + LOGD("Msg size %d\n", stream.bytes_written); if (m_onProtoEventStatus_cb != NULL) { m_onProtoEventStatus_cb(encoded_message_p, stream.bytes_written); @@ -1114,7 +1114,7 @@ app_proto_res_e Proto_config_get_current_event_status(bool online, return APP_RES_PROTO_CANNOT_GENERATE_RESPONSE; } - LOGI("Msg size %d\n", stream.bytes_written); + LOGD("Msg size %d\n", stream.bytes_written); *event_status_size_p = stream.bytes_written; return APP_RES_PROTO_OK; } diff --git a/lib/wpc_proto/internal_modules/proto_data.c b/lib/wpc_proto/internal_modules/proto_data.c index d83d81b..6a0bc70 100644 --- a/lib/wpc_proto/internal_modules/proto_data.c +++ b/lib/wpc_proto/internal_modules/proto_data.c @@ -106,7 +106,7 @@ static bool onDataReceived(const uint8_t * bytes, } else { - LOGI("Msg size %d\n", stream.bytes_written); + LOGD("Msg size %d\n", stream.bytes_written); if (m_rx_event_cb != NULL) { m_rx_event_cb(encoded_message_p, stream.bytes_written,