Added logging in console

This commit is contained in:
nobody42 2020-03-29 07:37:20 +02:00
parent fe3bc0274a
commit e1061eaa34
No known key found for this signature in database
GPG Key ID: AB5145CF05BFE119
1 changed files with 2 additions and 1 deletions

View File

@ -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;
};