From 4481e01f490c065eecbd1decf9e2c5ec88ea6786 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 d0db7ac..c9e7299 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); @@ -1115,7 +1115,7 @@ app_proto_res_e Proto_config_get_current_event_status(bool gw_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,