Skip to content

Commit

Permalink
Correctly set the version number when sending to sentry
Browse files Browse the repository at this point in the history
  • Loading branch information
nallath committed Nov 20, 2023
1 parent 7d6dc2c commit 5e22539
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

#include <spdlog/spdlog.h>
#include <sentry.h>
#include <string>
#include "Application.h"

namespace cura
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 5e22539

Please sign in to comment.