Skip to content

Commit

Permalink
Restore log error message
Browse files Browse the repository at this point in the history
  • Loading branch information
foot committed May 12, 2016
1 parent c9c1015 commit ad2eb32
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions client/app/scripts/reducers/root.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { applyPinnedSearches, updateNodeMatches } from '../utils/search-utils';
import { findTopologyById, getAdjacentNodes, setTopologyUrlsById,
updateTopologyIds, filterHiddenTopologies } from '../utils/topology-utils';

const log = debug('scope:app-store');
const error = debug('scope:error');

// Helpers
Expand Down Expand Up @@ -461,6 +462,16 @@ export function rootReducer(state = initialState, action) {
}

case ActionTypes.RECEIVE_NODES_DELTA: {
const emptyMessage = !action.delta.add && !action.delta.remove
&& !action.delta.update;

if (!emptyMessage) {
log('RECEIVE_NODES_DELTA',
'remove', _.size(action.delta.remove),
'update', _.size(action.delta.update),
'add', _.size(action.delta.add));
}

state = state.set('errorUrl', null);

// nodes that no longer exist
Expand Down

0 comments on commit ad2eb32

Please sign in to comment.