commented logs

This commit is contained in:
Jan Prochazka 2022-02-10 18:07:41 +01:00
parent edcc957e64
commit 849eff9e5b
3 changed files with 3 additions and 1 deletions

View File

@ -132,7 +132,7 @@ module.exports = {
},
async notifyChangedStats(stats) {
console.log('SENDING STATS', JSON.stringify(stats));
// console.log('SENDING STATS', JSON.stringify(stats));
const datastore = this.datastores[stats.jslid];
if (datastore) await datastore.notifyChanged();
socket.emit(`jsldata-stats-${stats.jslid}`, stats);

View File

@ -23,6 +23,7 @@ module.exports = {
}
},
emitChanged(key) {
// console.log('EMIT CHANGED', key);
this.emit('changed-cache', key);
// this.emit(key);
},

View File

@ -106,6 +106,7 @@ export async function unsubscribeCacheChange(reloadTrigger, cacheKey, reloadHand
}
function dispatchCacheChange(reloadTrigger) {
// console.log('CHANGE', reloadTrigger);
cacheClean(reloadTrigger);
for (const item of getAsArray(reloadTrigger)) {