Skip to content

Commit bcfdaed

Browse files
authored
Merge pull request #5871 from Countly/ar2rsawseen-patch-31
Update logger when collection does not exist
2 parents 9b2c479 + d5bc44c commit bcfdaed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/logger/api/api.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ plugins.setConfigs("logger", {
360360
}
361361
catch (ex) {
362362
console.log("Failed fetching logs collection info: ", ex);
363-
common.returnMessage(parameters, 400, 'Error fetching collection info');
363+
common.returnOutput(parameters, {capped: MAX_NUMBER_OF_LOG_ENTRIES, count: MAX_NUMBER_OF_LOG_ENTRIES, max: MAX_NUMBER_OF_LOG_ENTRIES, status: "error"});
364364
}
365365
});
366366
return true;

0 commit comments

Comments
 (0)