mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-25 02:56:00 +00:00
commented logs
This commit is contained in:
@@ -132,7 +132,7 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
async notifyChangedStats(stats) {
|
async notifyChangedStats(stats) {
|
||||||
console.log('SENDING STATS', JSON.stringify(stats));
|
// console.log('SENDING STATS', JSON.stringify(stats));
|
||||||
const datastore = this.datastores[stats.jslid];
|
const datastore = this.datastores[stats.jslid];
|
||||||
if (datastore) await datastore.notifyChanged();
|
if (datastore) await datastore.notifyChanged();
|
||||||
socket.emit(`jsldata-stats-${stats.jslid}`, stats);
|
socket.emit(`jsldata-stats-${stats.jslid}`, stats);
|
||||||
|
|||||||
@@ -23,6 +23,7 @@ module.exports = {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
emitChanged(key) {
|
emitChanged(key) {
|
||||||
|
// console.log('EMIT CHANGED', key);
|
||||||
this.emit('changed-cache', key);
|
this.emit('changed-cache', key);
|
||||||
// this.emit(key);
|
// this.emit(key);
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -106,6 +106,7 @@ export async function unsubscribeCacheChange(reloadTrigger, cacheKey, reloadHand
|
|||||||
}
|
}
|
||||||
|
|
||||||
function dispatchCacheChange(reloadTrigger) {
|
function dispatchCacheChange(reloadTrigger) {
|
||||||
|
// console.log('CHANGE', reloadTrigger);
|
||||||
cacheClean(reloadTrigger);
|
cacheClean(reloadTrigger);
|
||||||
|
|
||||||
for (const item of getAsArray(reloadTrigger)) {
|
for (const item of getAsArray(reloadTrigger)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user