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:
@@ -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;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user