From 59278c1cab42e38ea9b0b470818fde03b65b999e Mon Sep 17 00:00:00 2001 From: Andreas Date: Mon, 4 Sep 2017 11:01:02 +0200 Subject: [PATCH] json serialise logger middleware --- src/middleware/logger.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/middleware/logger.js b/src/middleware/logger.js index f6823e9..91aad49 100644 --- a/src/middleware/logger.js +++ b/src/middleware/logger.js @@ -1,6 +1,6 @@ export default store => next => action => { // console.log('---> dispatching', action) let result = next(action) - console.log("---> action:", action, "result of action:", store.getState()) + console.log("---> action:", action, "result of action:", JSON.stringify(store.getState(), undefined, 2)) // console.log("ACTION: " + JSON.stringify(action)) } -- GitLab