Skip to content

Commit

Permalink
Merge pull request #46 from alertlogic/fix_status
Browse files Browse the repository at this point in the history
Use correct stream type
  • Loading branch information
kkuzmin authored Mar 18, 2020
2 parents 90a5e2b + 98a9cd7 commit 58df0c9
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 @@ -142,12 +142,12 @@ class AlAwsCollector {
}
}

prepareErrorStatus(errorString, streamName = 'error', collectionType) {
prepareErrorStatus(errorString, streamName = 'none', collectionType) {
let cType = collectionType ? collectionType : this._ingestType;
return {
stream_name: streamName,
status_type: 'error',
stream_type: 'collector',
stream_type: 'status',
message_type: 'collector_status',
host_uuid: this._collectorId,
data: [
Expand Down Expand Up @@ -373,7 +373,7 @@ class AlAwsCollector {
if(!status){
return callback(null);
} else {
zlib.deflate(JSON.stringify([status]), function(compressionErr, compressed) {
zlib.deflate(JSON.stringify([status]), (compressionErr, compressed) => {
if (compressionErr) {
return callback(compressionErr);
} else {
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.9",
"version": "2.0.10",
"license": "MIT",
"description": "Alert Logic AWS Collector Common Library",
"repository": {
Expand Down

0 comments on commit 58df0c9

Please sign in to comment.