1
0
mirror of https://codeberg.org/nobody/LocalCDN.git synced 2025-06-05 21:49:31 +02:00

Added logging in console

This commit is contained in:
nobody42
2020-03-29 07:37:20 +02:00
parent fe3bc0274a
commit e1061eaa34

View File

@@ -129,6 +129,7 @@ requestAnalyzer._findLocalTarget = function (resourceMappings, basePath, channel
targetPath = targetPath + filename + 'm'; targetPath = targetPath + filename + 'm';
} }
console.log('[ LocalCDN ] Replaced resource: ' + targetPath);
// Prepare and return a local target. // Prepare and return a local target.
return { return {
'source': channelHost, 'source': channelHost,
@@ -138,7 +139,7 @@ requestAnalyzer._findLocalTarget = function (resourceMappings, basePath, channel
}; };
} }
} }
console.warn('[ LocalCDN ] Missing resource: ' + channelHost + channelPath);
return false; return false;
}; };