From 1ed7216230d1d21283433114aee7393297406734 Mon Sep 17 00:00:00 2001 From: ktsn Date: Tue, 13 Sep 2016 23:16:15 +0900 Subject: [PATCH] use state transformer in logger plugin --- src/plugins/logger.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/logger.js b/src/plugins/logger.js index 583620837..e1d27f7a0 100644 --- a/src/plugins/logger.js +++ b/src/plugins/logger.js @@ -28,9 +28,9 @@ export default function createLogger ({ console.log(message) } - console.log('%c prev state', 'color: #9E9E9E; font-weight: bold', prevState) + console.log('%c prev state', 'color: #9E9E9E; font-weight: bold', transformer(prevState)) console.log('%c mutation', 'color: #03A9F4; font-weight: bold', formattedMutation) - console.log('%c next state', 'color: #4CAF50; font-weight: bold', nextState) + console.log('%c next state', 'color: #4CAF50; font-weight: bold', transformer(nextState)) try { console.groupEnd()