Skip to content

Commit

Permalink
Merge pull request #5871 from Countly/ar2rsawseen-patch-31
Browse files Browse the repository at this point in the history
Update logger when collection does not exist
  • Loading branch information
ar2rsawseen authored Dec 17, 2024
2 parents 9b2c479 + d5bc44c commit bcfdaed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/logger/api/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ plugins.setConfigs("logger", {
}
catch (ex) {
console.log("Failed fetching logs collection info: ", ex);
common.returnMessage(parameters, 400, 'Error fetching collection info');
common.returnOutput(parameters, {capped: MAX_NUMBER_OF_LOG_ENTRIES, count: MAX_NUMBER_OF_LOG_ENTRIES, max: MAX_NUMBER_OF_LOG_ENTRIES, status: "error"});
}
});
return true;
Expand Down

0 comments on commit bcfdaed

Please sign in to comment.