Hotfix v. 1.18.1

This commit is contained in:
Kevin Röbert
2020-06-07 21:32:24 +02:00
parent 27af2c8c49
commit ac2d5da41c
5 changed files with 12 additions and 4 deletions

View File

@@ -305,7 +305,7 @@ function handleError(error) {
* @param rule the rule that triggered the process
*/
function pushToLog(beforeProcessing, afterProcessing, rule) {
const limit = storage.logLimit;
const limit = Math.max(0, storage.logLimit);
if (storage.loggingStatus && limit !== 0 && !isNaN(limit)) {
while (storage.log.log.length >= limit
|| storage.log.log.length >= logThreshold) {