Skip to content

Commit

Permalink
fix(websocket): fix websocket log reportLogIndex
Browse files Browse the repository at this point in the history
  • Loading branch information
tarotlwei authored and huangyoukun committed Jun 21, 2018
1 parent cc282e5 commit f500516
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions bin/proxy/websocket.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ function wsFiller(ws, req) {

ws.logReportTimer = null;
ws.__tempSend = ws.send;
ws.reportIndex = 1;

ws.send = function(message) {
logger.debug('server send message : ${message}', {
Expand Down
1 change: 1 addition & 0 deletions bin/tsw/util/auto-report/logReport.js
Original file line number Diff line number Diff line change
Expand Up @@ -665,6 +665,7 @@ function reportLog() {
});

logText = firstLogFn() + logText;
ws.reportIndex++;
}

if (type === 'alpha') {
Expand Down

0 comments on commit f500516

Please sign in to comment.