From c564c667df47bc0bf38cd7c1b30305fc129fb1a5 Mon Sep 17 00:00:00 2001 From: Automatic Release Builder Date: Wed, 23 Sep 2020 22:12:09 +0100 Subject: [PATCH] Sentry: avoid duplicate events for exceptions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Since fatalMessageBox already logs an event when it’s invoked, don’t report the event a second time. --- src/Main/bootstrap.cxx | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/Main/bootstrap.cxx b/src/Main/bootstrap.cxx index e5fde2107..8039ef686 100644 --- a/src/Main/bootstrap.cxx +++ b/src/Main/bootstrap.cxx @@ -324,10 +324,7 @@ int main ( int argc, char **argv ) info = std::string("received from ") + t.getOrigin(); flightgear::fatalMessageBoxWithoutExit( "Fatal exception", t.getFormattedMessage(), info); - - flightgear::sentryReportException(t.getFormattedMessage()), t.getOrigin(); } catch (const std::exception &e ) { - flightgear::sentryReportException(e.what()); flightgear::fatalMessageBoxWithoutExit("Fatal exception", e.what()); } catch (const std::string &s) { flightgear::fatalMessageBoxWithoutExit("Fatal exception", s);