Comparing version 1.0.3 to 1.0.4
@@ -137,2 +137,10 @@ 'use strict'; | ||
var signature = message.signature; | ||
// 如果server返回错误,不带签名,说明agent发注册消息的时候签名验证失败 | ||
if (!signature) { | ||
if (type === 'error') { | ||
console.log(params.error, 'process exit~~~~~'); | ||
process.exit(-3); | ||
} | ||
} | ||
// 删除签名,重新计算 | ||
@@ -155,4 +163,4 @@ delete message.signature; | ||
this.stopRegister(); | ||
debug("register failing, exit."); | ||
process.exit(-1); | ||
console.log('register failed, process exit.'); | ||
process.exit(-2); | ||
} else if (params.result === 'HEARTBEAT_ACK') { | ||
@@ -168,4 +176,4 @@ this.heartbeatMissCount = 0; | ||
case 'error': | ||
debug(params.error, 'process exit~'); | ||
process.exit(-2); | ||
console.log(params.error, 'process exit~'); | ||
process.exit(-1); | ||
break; | ||
@@ -172,0 +180,0 @@ |
@@ -8,3 +8,3 @@ 'use strict'; | ||
var MAX_LINES = 25; // 最多10行数据 | ||
var MAX_LINES = 100; // 最多100行数据 | ||
var buffered = []; | ||
@@ -11,0 +11,0 @@ exports.logdir = ''; // 日志路径 |
{ | ||
"name": "agentx", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"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
15302
495