Skip to content

Commit

Permalink
Merge pull request #45 from alertlogic/cosmetic
Browse files Browse the repository at this point in the history
Fix warning message for collector type reporting
  • Loading branch information
kkuzmin authored Mar 13, 2020
2 parents 98a3c3c + a39231d commit 90a5e2b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions al_aws_collector.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* Base class for AWS Lambda based collectors.
*
* Last message ID: AWSC0011
* Last message ID: AWSC0013
* @end
* -----------------------------------------------------------------------------
*/
Expand Down Expand Up @@ -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 {
Expand Down Expand Up @@ -383,6 +382,7 @@ class AlAwsCollector {
return callback(null, resp);
})
.catch(exception => {
console.warn('AWSC0013 Collector status send failed: ', exception);
return callback(exception);
});
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down

0 comments on commit 90a5e2b

Please sign in to comment.