From a39231d7d4f454712befe33016aec4b79487f65a Mon Sep 17 00:00:00 2001 From: Konstantin Kuzmin Date: Fri, 13 Mar 2020 14:35:20 +0000 Subject: [PATCH] Fix warning message for collector type reporting --- al_aws_collector.js | 6 +++--- package.json | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/al_aws_collector.js b/al_aws_collector.js index cbad8c7..ede121f 100644 --- a/al_aws_collector.js +++ b/al_aws_collector.js @@ -4,7 +4,7 @@ * * Base class for AWS Lambda based collectors. * - * Last message ID: AWSC0011 + * Last message ID: AWSC0013 * @end * ----------------------------------------------------------------------------- */ @@ -134,8 +134,7 @@ class AlAwsCollector { util.inspect(error); } const status = this.prepareErrorStatus(errorString); - this.sendStatus(status, (sendError) => { - console.warn('AWSC0011 Collector status send failed', sendError); + this.sendStatus(status, () => { context.fail(errorString); }); } else { @@ -383,6 +382,7 @@ class AlAwsCollector { return callback(null, resp); }) .catch(exception => { + console.warn('AWSC0013 Collector status send failed: ', exception); return callback(exception); }); } diff --git a/package.json b/package.json index 888310a..92689ba 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@alertlogic/al-aws-collector-js", - "version": "2.0.8", + "version": "2.0.9", "license": "MIT", "description": "Alert Logic AWS Collector Common Library", "repository": {