Skip to content

Commit a39231d

Browse files
author
Konstantin Kuzmin
committed
Fix warning message for collector type reporting
1 parent 98a3c3c commit a39231d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

al_aws_collector.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*
55
* Base class for AWS Lambda based collectors.
66
*
7-
* Last message ID: AWSC0011
7+
* Last message ID: AWSC0013
88
* @end
99
* -----------------------------------------------------------------------------
1010
*/
@@ -134,8 +134,7 @@ class AlAwsCollector {
134134
util.inspect(error);
135135
}
136136
const status = this.prepareErrorStatus(errorString);
137-
this.sendStatus(status, (sendError) => {
138-
console.warn('AWSC0011 Collector status send failed', sendError);
137+
this.sendStatus(status, () => {
139138
context.fail(errorString);
140139
});
141140
} else {
@@ -383,6 +382,7 @@ class AlAwsCollector {
383382
return callback(null, resp);
384383
})
385384
.catch(exception => {
385+
console.warn('AWSC0013 Collector status send failed: ', exception);
386386
return callback(exception);
387387
});
388388
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@alertlogic/al-aws-collector-js",
3-
"version": "2.0.8",
3+
"version": "2.0.9",
44
"license": "MIT",
55
"description": "Alert Logic AWS Collector Common Library",
66
"repository": {

0 commit comments

Comments
 (0)