mirror of
https://github.com/SantaSpeen/BeamMP-Server.git
synced 2026-04-20 03:20:10 +00:00
working sentry-native
This commit is contained in:
16
src/Sentry.cpp
Normal file
16
src/Sentry.cpp
Normal file
@@ -0,0 +1,16 @@
|
||||
#include "Sentry.h"
|
||||
#include "Common.h"
|
||||
|
||||
#include "sentry.h"
|
||||
|
||||
Sentry::Sentry(const std::string& SentryUrl) {
|
||||
sentry_options_t* options = sentry_options_new();
|
||||
sentry_options_set_dsn(options, SentryUrl.c_str());
|
||||
auto ReleaseString = "BeamMP-Server@" + Application::ServerVersion();
|
||||
sentry_options_set_release(options, ReleaseString.c_str());
|
||||
sentry_init(options);
|
||||
}
|
||||
|
||||
Sentry::~Sentry() {
|
||||
sentry_close();
|
||||
}
|
||||
Reference in New Issue
Block a user