mirror of
https://github.com/weaveworks/scope.git
synced 2026-03-03 02:00:43 +00:00
Restore log error message
This commit is contained in:
@@ -10,6 +10,7 @@ import { getNetworkNodes, getAvailableNetworks } from '../utils/network-view-uti
|
||||
import { findTopologyById, getAdjacentNodes, setTopologyUrlsById,
|
||||
updateTopologyIds, filterHiddenTopologies } from '../utils/topology-utils';
|
||||
|
||||
const log = debug('scope:app-store');
|
||||
const error = debug('scope:error');
|
||||
|
||||
// Helpers
|
||||
@@ -485,6 +486,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
|
||||
|
||||
Reference in New Issue
Block a user