-
-
Notifications
You must be signed in to change notification settings - Fork 890
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Correctly set the version number when sending to sentry
- Loading branch information
Showing
1 changed file
with
5 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ | |
|
||
#include <spdlog/spdlog.h> | ||
#include <sentry.h> | ||
#include <string> | ||
#include "Application.h" | ||
|
||
namespace cura | ||
|
@@ -44,11 +45,11 @@ int main(int argc, char** argv) | |
// This is also the default-path. For further information and recommendations: | ||
// https://docs.sentry.io/platforms/native/configuration/options/#database-path | ||
sentry_options_set_database_path(options, ".sentry-native"); | ||
// TODO: Hardcoded the version number, we should also get that from somewhere. Can't be bothered to figure that out now | ||
sentry_options_set_release(options, "[email protected]"); | ||
sentry_options_set_debug(options, 1); | ||
std::string version = "curaengine@"; | ||
version += std::string(CURA_ENGINE_VERSION); | ||
sentry_options_set_release(options, version.c_str()); | ||
sentry_init(options); | ||
|
||
cura::Application::getInstance().run(argc, argv); | ||
|
||
sentry_close(); | ||
|