From 849eff9e5b9b8b8a204f56103ff4bd025ace205c Mon Sep 17 00:00:00 2001 From: Jan Prochazka Date: Thu, 10 Feb 2022 18:07:41 +0100 Subject: [PATCH] commented logs --- packages/api/src/controllers/jsldata.js | 2 +- packages/api/src/utility/socket.js | 1 + packages/web/src/utility/cache.ts | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/api/src/controllers/jsldata.js b/packages/api/src/controllers/jsldata.js index 3a0480be..b20280bf 100644 --- a/packages/api/src/controllers/jsldata.js +++ b/packages/api/src/controllers/jsldata.js @@ -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); diff --git a/packages/api/src/utility/socket.js b/packages/api/src/utility/socket.js index 5ebf4deb..86eb0433 100644 --- a/packages/api/src/utility/socket.js +++ b/packages/api/src/utility/socket.js @@ -23,6 +23,7 @@ module.exports = { } }, emitChanged(key) { + // console.log('EMIT CHANGED', key); this.emit('changed-cache', key); // this.emit(key); }, diff --git a/packages/web/src/utility/cache.ts b/packages/web/src/utility/cache.ts index 7fddee08..d6dcc670 100644 --- a/packages/web/src/utility/cache.ts +++ b/packages/web/src/utility/cache.ts @@ -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)) {