import { createLogger } from '.' ; import { Action , Dispatch , Middleware } from '../types/redux' ; const log = createLogger ( 'redux' ) ; export const logMiddleware = ( ) => ( next ) => ( action ) => { if ( action . type !== 'SYSTEM_ADD_STATS' ) { log . debug ( { action } ) ; } next ( action ) ; } ;