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

Still logging if disabled (#1038)

This commit is contained in:
nobody
2022-07-01 06:48:31 +02:00
parent 2715e6e810
commit 1396fd011e
3 changed files with 12 additions and 14 deletions

View File

@ -22,7 +22,11 @@
var log = {};
log.append = function (initiator, resource, target, highlight) {
log.data.push({initiator, resource, target, highlight});
storageManager.type.get(Setting.LOGGING, function (items) {
if (items.enableLogging) {
log.data.push({initiator, resource, target, highlight});
}
});
};
log.data = [];