Comparing version 1.2.0 to 1.2.1
@@ -60,3 +60,7 @@ 'use strict'; | ||
} else { | ||
this.current.extra += line + '\n'; // 不明确的数据,暂时存放 | ||
if (this.current) { | ||
if (this.current.extra.length < 250) { // 最多存放250个字符 | ||
this.current.extra += line + '\n'; // 不明确的数据,暂时存放 | ||
} | ||
} | ||
} | ||
@@ -63,0 +67,0 @@ }; |
@@ -90,8 +90,11 @@ 'use strict'; | ||
exports.init = function (config) { | ||
exports.logs = config.error_log; | ||
var logs = config.error_log; | ||
for (var i = 0; i < logs.length; i++) { | ||
var key = logs[i]; | ||
parsers.set(key, new Parser(MAX_ERROR_COUNT)); | ||
keyMap.set(key, getRealPath(key)); | ||
if (config.error_log) { | ||
exports.logs = config.error_log; | ||
var logs = config.error_log; | ||
for (var i = 0; i < logs.length; i++) { | ||
var key = logs[i]; | ||
parsers.set(key, new Parser(MAX_ERROR_COUNT)); | ||
keyMap.set(key, getRealPath(key)); | ||
} | ||
} | ||
@@ -98,0 +101,0 @@ }; |
{ | ||
"name": "agentx", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "agentx is powered by alinode", | ||
@@ -5,0 +5,0 @@ "scripts": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
24125
792