Commit 3b5a22eb authored by martin hou's avatar martin hou

fix: 增加日志

parent 537295da
...@@ -370,7 +370,7 @@ function Jensen(log, conn) { ...@@ -370,7 +370,7 @@ function Jensen(log, conn) {
let p = actions[current]; let p = actions[current];
if (p.timeout) clearTimeout(p.timeout); if (p.timeout) clearTimeout(p.timeout);
p.resolve(resp); p.resolve(resp);
Logger.info('jensen', 'trigger', tag + ', cost: ' + (new Date().getTime() - p.createTime) + 'ms'); Logger.info('jensen', 'trigger', p.tag + ', cost: ' + (new Date().getTime() - p.createtime) + 'ms');
delete actions[current]; delete actions[current];
current = null; current = null;
}; };
...@@ -481,7 +481,7 @@ function Jensen(log, conn) { ...@@ -481,7 +481,7 @@ function Jensen(log, conn) {
Logger.debug( Logger.debug(
'jensen', 'jensen',
'receive', 'receive',
pid + '-recv: ' + cname + ', seq: ' + msg.sequence + ', data bytes: ' + msg.body?.byteLength + ', data: ' + heading.join(' ') pid + '-recv: cmd=' + msg.id + ', seq: ' + msg.sequence + ', data bytes: ' + msg.body?.byteLength + ', data: ' + heading.join(' ')
); );
try { try {
let handler = handlers[msg.id]; let handler = handlers[msg.id];
......
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