Skip to content

Commit 081bfa6

Browse files
committed
JSON.stringify all objects for error dump
1 parent e03855e commit 081bfa6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/shared/reducers/contentful/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ function create(init) {
6161
const environment = _.get(payload, 'environment') || config.CONTENTFUL.DEFAULT_ENVIRONMENT;
6262
const res = _.get(newState, `${spaceName}.${environment}`);
6363
if (error || !res) {
64-
logger.log('CMS-related error', error, JSON.stringify(action), config.CONTENTFUL.DEFAULT_SPACE_NAME, config.CONTENTFUL.DEFAULT_ENVIRONMENT, res, newState);
64+
logger.log('CMS-related error', error, JSON.stringify(action), config.CONTENTFUL.DEFAULT_SPACE_NAME, config.CONTENTFUL.DEFAULT_ENVIRONMENT, JSON.stringify(res), JSON.stringify(newState));
6565
return state;
6666
}
6767
const st = state[spaceName][environment];

0 commit comments

Comments
 (0)