Skip to content

Commit 4481e01

Browse files
Reduce number of default log message for proto to send
Size info can be log in the callback with other info.
1 parent 3e02537 commit 4481e01

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/wpc_proto/internal_modules/proto_config.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ static void onStackStatusReceived(uint8_t status)
542542
}
543543
else
544544
{
545-
LOGI("Msg size %d\n", stream.bytes_written);
545+
LOGD("Msg size %d\n", stream.bytes_written);
546546
if (m_onProtoEventStatus_cb != NULL)
547547
{
548548
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,
11151115
return APP_RES_PROTO_CANNOT_GENERATE_RESPONSE;
11161116
}
11171117

1118-
LOGI("Msg size %d\n", stream.bytes_written);
1118+
LOGD("Msg size %d\n", stream.bytes_written);
11191119
*event_status_size_p = stream.bytes_written;
11201120
return APP_RES_PROTO_OK;
11211121
}

lib/wpc_proto/internal_modules/proto_data.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ static bool onDataReceived(const uint8_t * bytes,
106106
}
107107
else
108108
{
109-
LOGI("Msg size %d\n", stream.bytes_written);
109+
LOGD("Msg size %d\n", stream.bytes_written);
110110
if (m_rx_event_cb != NULL)
111111
{
112112
m_rx_event_cb(encoded_message_p, stream.bytes_written,

0 commit comments

Comments
 (0)