From ef5d766f1fafeecd27b666ac91133e59fde90554 Mon Sep 17 00:00:00 2001 From: Guilherme Gazzo Date: Mon, 24 Jun 2019 21:39:28 -0300 Subject: [PATCH] Allow debugging of cached collections by name[2] --- app/ui-cached-collection/client/models/CachedCollection.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/ui-cached-collection/client/models/CachedCollection.js b/app/ui-cached-collection/client/models/CachedCollection.js index 84efd0fd85b8..9a0aa0305ce8 100644 --- a/app/ui-cached-collection/client/models/CachedCollection.js +++ b/app/ui-cached-collection/client/models/CachedCollection.js @@ -135,13 +135,12 @@ export class CachedCollection { this.useSync = useSync; this.useCache = useCache; this.listenChangesForLoggedUsersOnly = listenChangesForLoggedUsersOnly; - this.debug = debug; this.version = version; this.userRelated = userRelated; this.updatedAt = new Date(0); this.maxCacheTime = maxCacheTime; this.onSyncData = onSyncData; - this.log = debug ? log : nullLog; + this.log = debug(name) ? log : nullLog; CachedCollectionManager.register(this); if (userRelated === true) {