Fix sentry setting of dist
Was missing header and string conversion, oops.
This commit is contained in:
parent
3b5b301e98
commit
d56e3857b6
1 changed files with 4 additions and 1 deletions
|
@ -29,6 +29,8 @@
|
||||||
#include <Main/fg_props.hxx>
|
#include <Main/fg_props.hxx>
|
||||||
#include <Main/globals.hxx>
|
#include <Main/globals.hxx>
|
||||||
|
|
||||||
|
#include <flightgearBuildId.h>
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
// we don't want sentry enabled for the test suite
|
// 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_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";
|
SGPath dataPath = fgHomePath() / "sentry_db";
|
||||||
#if defined(SG_WINDOWS)
|
#if defined(SG_WINDOWS)
|
||||||
|
|
Loading…
Reference in a new issue