|
@@ -60,7 +60,7 @@ function handleClientError(scope, item) { |
|
@@ -60,7 +60,7 @@ function handleClientError(scope, item) { |
60
|
},
|
60
|
},
|
61
|
fields: Object.assign({
|
61
|
fields: Object.assign({
|
62
|
message: item.msg,
|
62
|
message: item.msg,
|
63
|
- useragent: scope.app,
|
63
|
+ useragent: scope.useragent,
|
64
|
stack: item.st ? item.st.replace(/"/g, '') : '',
|
64
|
stack: item.st ? item.st.replace(/"/g, '') : '',
|
65
|
script: item.sc,
|
65
|
script: item.sc,
|
66
|
line: _.parseInt(item.ln || 0),
|
66
|
line: _.parseInt(item.ln || 0),
|
|
@@ -68,8 +68,11 @@ function handleClientError(scope, item) { |
|
@@ -68,8 +68,11 @@ function handleClientError(scope, item) { |
68
|
})
|
68
|
})
|
69
|
});
|
69
|
});
|
70
|
|
70
|
|
71
|
- logger.debug('[client] error info [%s]', JSON.stringify(data));
|
|
|
72
|
- errorRouterSqlSender.addMessage(msg2row.errorRouter(data));
|
71
|
+ const ipInfo = ipService.getIsp(scope.ip);
|
|
|
72
|
+ const row = Object.assign(msg2row.errorRouter(data), ipInfo, {ip: scope.ip});
|
|
|
73
|
+
|
|
|
74
|
+ logger.debug('[client] error info [%s]', JSON.stringify(row));
|
|
|
75
|
+ errorRouterSqlSender.addMessage(row);
|
73
|
}
|
76
|
}
|
74
|
|
77
|
|
75
|
function handleClientFirst(scope, item) {
|
78
|
function handleClientFirst(scope, item) {
|