Skip to content

Commit

Permalink
Allow debugging of cached collections by name (#14859)
Browse files Browse the repository at this point in the history
  • Loading branch information
ggazzo authored and sampaiodiego committed Jun 24, 2019
1 parent fbb47b6 commit c17a04d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/ui-cached-collection/client/models/CachedCollection.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import _ from 'underscore';

import { callbacks } from '../../../callbacks';
import Notifications from '../../../notifications/client/lib/Notifications';
import { getConfig } from '../../../ui-utils/client/config';

class CachedCollectionManagerClass {
constructor() {
Expand Down Expand Up @@ -99,7 +100,7 @@ class CachedCollectionManagerClass {

export const CachedCollectionManager = new CachedCollectionManagerClass();

const debug = false;
const debug = (name) => [getConfig(`debugCachedCollection-${ name }`), getConfig('debugCachedCollection'), getConfig('debug')].includes('true');

const nullLog = function() {};

Expand Down

0 comments on commit c17a04d

Please sign in to comment.