diff --git a/source/hocs/withErrorBoundary/index.js b/source/hocs/withErrorBoundary/index.js index b9cdc5d9..10af3830 100644 --- a/source/hocs/withErrorBoundary/index.js +++ b/source/hocs/withErrorBoundary/index.js @@ -21,8 +21,8 @@ class ErrorBoundary extends React.Component { if (!this.props.skipLog) { logErrorEvent(this.props.appName, this.props.appVersion, `error-boundary-${this.props.name}`, { - errorStack: error.stack, - componentStack: info.componentStack, + errorMessage: error.message, + errorStack: error.stack.substr(0, 1000), // too much prevents the log from showing up }); } }