Skip to content

Commit fad8ca3

Browse files
committed
Update log tace
1 parent 6b32fda commit fad8ca3

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/AsyncWebSocket.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,9 @@ void AsyncWebSocketClient::_onData(void *pbuf, size_t plen) {
565565
uint8_t *data = (uint8_t *)pbuf;
566566

567567
while (plen > 0) {
568-
async_ws_log_v("WS[%" PRIu32 "] _onData: plen=%" PRIu32 ", _pstate=%" PRIu8 ", _status=%" PRIu8, _clientId, plen, _pstate, static_cast<uint8_t>(_status));
568+
async_ws_log_v(
569+
"WS[%" PRIu32 "] _onData: plen: %" PRIu32 ", _pstate: %" PRIu8 ", _status: %" PRIu8, _clientId, plen, _pstate, static_cast<uint8_t>(_status)
570+
);
569571

570572
if (_pstate == STATE_FRAME_START) {
571573
const uint8_t *fdata = data;
@@ -616,7 +618,7 @@ void AsyncWebSocketClient::_onData(void *pbuf, size_t plen) {
616618

617619
//wait for more data
618620
_pstate = STATE_FRAME_MASK;
619-
async_ws_log_v("WS[%" PRIu32 "] waiting for more mask data: read=%" PRIu8 "/4", _clientId, _pinfo.masked - 1);
621+
async_ws_log_v("WS[%" PRIu32 "] waiting for more mask data: read: %" PRIu8 "/4", _clientId, _pinfo.masked - 1);
620622
return;
621623
}
622624

0 commit comments

Comments
 (0)