1
0
Fork 0

Fix sentry setting of dist

Was missing header and string conversion, oops.
This commit is contained in:
James Turner 2020-09-18 10:14:23 +01:00
parent 3b5b301e98
commit d56e3857b6

View file

@ -29,6 +29,8 @@
#include <Main/fg_props.hxx>
#include <Main/globals.hxx>
#include <flightgearBuildId.h>
using namespace std;
// we don't want sentry enabled for the test suite
@ -78,7 +80,8 @@ void initSentry()
sentry_options_set_release(options, "flightgear@" FLIGHTGEAR_VERSION);
}
sentry_options_set_dist(options, std::to_string(JENKINS_BUILD_NUMBER))
const auto buildString = std::to_string(JENKINS_BUILD_NUMBER);
sentry_options_set_dist(options, buildString.c_str());
SGPath dataPath = fgHomePath() / "sentry_db";
#if defined(SG_WINDOWS)