Commit 8f1869ac authored by martin hou's avatar martin hou

chore: 删除无用日志输出

parent e1a8f86c
...@@ -487,7 +487,7 @@ function Jensen(log, conn) { ...@@ -487,7 +487,7 @@ function Jensen(log, conn) {
totalBuffLen += blocks[i].byteLength; totalBuffLen += blocks[i].byteLength;
} }
Logger.info('jensen', 'transfer', `try to decode buffer with ${totalBuffLen} bytes`); Logger.info('jensen', 'transfer', `try to decode buffer with ${totalBuffLen} bytes`);
console.log('blocks', blocks); // console.log('blocks', blocks);
let stime = new Date(); let stime = new Date();
let buff = new ArrayBuffer(RECV_BUFF_SIZE * 2); let buff = new ArrayBuffer(RECV_BUFF_SIZE * 2);
...@@ -581,7 +581,7 @@ function Jensen(log, conn) { ...@@ -581,7 +581,7 @@ function Jensen(log, conn) {
}; };
const decodeMessage = function (dataView, startIndex, buffLength) { const decodeMessage = function (dataView, startIndex, buffLength) {
console.log('decodeMessage', startIndex, buffLength, dataView); // console.log('decodeMessage', startIndex, buffLength, dataView);
let dataLen = buffLength - startIndex; let dataLen = buffLength - startIndex;
if (dataLen < 12) return null; if (dataLen < 12) return null;
if (dataView[startIndex + 0] !== 0x12 || dataView[startIndex + 1] !== 0x34) throw new Error('invalid header'); if (dataView[startIndex + 0] !== 0x12 || dataView[startIndex + 1] !== 0x34) throw new Error('invalid header');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment