1
0
Fork 0

Sentry: track reset status via a tag

Allow easy grouping of reports by ‘did we do a reset, ever’
This commit is contained in:
James Turner 2020-12-21 16:51:54 +00:00 committed by James Turner
parent df34cb3cd9
commit 0d0b8d01d2

View file

@ -881,6 +881,7 @@ bool fgInitGeneral() {
fgSetBool("/sim/startup/stderr-to-terminal", isatty(2) != 0 ); fgSetBool("/sim/startup/stderr-to-terminal", isatty(2) != 0 );
sgUserDataInit( globals->get_props() ); sgUserDataInit( globals->get_props() );
flightgear::addSentryTag("have-reset", "no");
return true; return true;
} }
@ -1236,6 +1237,8 @@ void fgStartReposition()
void fgStartNewReset() void fgStartNewReset()
{ {
flightgear::addSentryTag("have-reset", "yes");
// save user settings now, so that USERARCIVE-d values changes since the // save user settings now, so that USERARCIVE-d values changes since the
// last init are recorded and hence re-loaded when we fgInitConfig down // last init are recorded and hence re-loaded when we fgInitConfig down
// later in this function. Otherwise all such settings are lost. // later in this function. Otherwise all such settings are lost.