From e755f61e149c440d8f9b4d0a2bd399aca137e357 Mon Sep 17 00:00:00 2001 From: Sean Yesmunt Date: Fri, 15 Mar 2019 12:37:56 -0400 Subject: [PATCH] report errors through internal-apis --- src/ui/component/errorBoundary/view.jsx | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/ui/component/errorBoundary/view.jsx b/src/ui/component/errorBoundary/view.jsx index f79f32bdf67..aec60a57d1e 100644 --- a/src/ui/component/errorBoundary/view.jsx +++ b/src/ui/component/errorBoundary/view.jsx @@ -1,11 +1,9 @@ // @flow +import { Lbryio } from 'lbryinc'; import * as React from 'react'; import Yrbl from 'component/yrbl'; import Button from 'component/button'; -const WEB_HOOK_URL = - 'https://hooks.slack.com/services/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'; - type Props = { children: React.Node, }; @@ -28,12 +26,7 @@ export default class ErrorBoundary extends React.Component { declare var app: { env: string }; if (app.env === 'production') { - fetch(WEB_HOOK_URL, { - method: 'POST', - body: JSON.stringify({ - text: error.stack, - }), - }); + Lbryio.call('event', 'desktop_error', { error_message: error.stack }); } }