From e1061eaa348d5ad88f07e6d99fd50695483adb58 Mon Sep 17 00:00:00 2001 From: nobody42 <5514211-nobody42@users.noreply.gitlab.com> Date: Sun, 29 Mar 2020 07:37:20 +0200 Subject: [PATCH] Added logging in console --- core/request-analyzer.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/request-analyzer.js b/core/request-analyzer.js index 37839098..6069c302 100644 --- a/core/request-analyzer.js +++ b/core/request-analyzer.js @@ -129,6 +129,7 @@ requestAnalyzer._findLocalTarget = function (resourceMappings, basePath, channel targetPath = targetPath + filename + 'm'; } + console.log('[ LocalCDN ] Replaced resource: ' + targetPath); // Prepare and return a local target. return { 'source': channelHost, @@ -138,7 +139,7 @@ requestAnalyzer._findLocalTarget = function (resourceMappings, basePath, channel }; } } - + console.warn('[ LocalCDN ] Missing resource: ' + channelHost + channelPath); return false; };