From ca96c8ffca736449552caffa4b59786046cedfa8 Mon Sep 17 00:00:00 2001 From: nobody Date: Wed, 29 Sep 2021 07:10:37 +0200 Subject: [PATCH] Logging improved (#703) --- core/interceptor.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/interceptor.js b/core/interceptor.js index c270cb93..e10e6845 100644 --- a/core/interceptor.js +++ b/core/interceptor.js @@ -41,8 +41,8 @@ interceptor.handleRequest = function (requestDetails, tabIdentifier, tab) { }; } - if (!interceptor.blockMissing && interceptor._isBadResource(requestDetails.url)) { - console.warn(`[ LocalCDN ] Evil resource blocked: ${requestDetails.url}`); + if (interceptor._isBadResource(requestDetails.url)) { + console.log(`[ LocalCDN ] Evil resource blocked: ${requestDetails.url}`); log.append(tab.url, requestDetails.url, '-', true); return { 'cancel': true