From c9b1a5dbbd6b3ac3fe4c602d0b3729f8eab11045 Mon Sep 17 00:00:00 2001 From: Josh Date: Fri, 4 Sep 2020 15:14:48 -0400 Subject: [PATCH 1/2] :loud_sound: Less logging --- source/hocs/withErrorBoundary/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/hocs/withErrorBoundary/index.js b/source/hocs/withErrorBoundary/index.js index b9cdc5d9..11c04a9d 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, + errorStack: error.stack.substr(0, 1000), // too much prevents the log from showing up + errorMessage: error.message, }); } } From 3617dbe174dc07b9e2c74a80bd20119f3800e315 Mon Sep 17 00:00:00 2001 From: Josh Date: Fri, 4 Sep 2020 15:17:03 -0400 Subject: [PATCH 2/2] less logging data --- source/hocs/withErrorBoundary/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/hocs/withErrorBoundary/index.js b/source/hocs/withErrorBoundary/index.js index 11c04a9d..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.substr(0, 1000), // too much prevents the log from showing up errorMessage: error.message, + errorStack: error.stack.substr(0, 1000), // too much prevents the log from showing up }); } }