Config: Add basic opt-out for Sentry

This commit is contained in:
Lion Kortlepel
2021-09-09 17:22:03 +03:00
committed by Lion
parent 3cd94380e2
commit ffac000cd2
4 changed files with 29 additions and 4 deletions

View File

@@ -34,9 +34,14 @@ TSentry::~TSentry() {
void TSentry::PrintWelcome() {
if (mValid) {
info("Sentry started");
if (!Application::Settings.SendErrors) {
mValid = false;
info("Opted out of error reporting (SendErrors), Sentry disabled.");
} else {
info("Sentry started! Reporting errors automatically. You can opt-out of this in the ServerConfig.");
}
} else {
info("Sentry disabled in unofficial build");
info("Sentry disabled in unofficial build. Automatic error reporting disabled.");
}
}