Clarify what sentry sends, add a way to turn off the warning

This commit is contained in:
Lion Kortlepel
2021-09-10 15:53:08 +03:00
committed by Lion
parent 38b934bc0f
commit 6542be09ee
3 changed files with 28 additions and 5 deletions

View File

@@ -36,12 +36,24 @@ void TSentry::PrintWelcome() {
if (mValid) {
if (!Application::Settings.SendErrors) {
mValid = false;
info("Opted out of error reporting (SendErrors), Sentry disabled.");
if (Application::Settings.SendErrorsMessageEnabled) {
info("Opted out of error reporting (SendErrors), Sentry disabled.");
} else {
info("Sentry disabled");
}
} else {
info("Sentry started! Reporting errors automatically. You can opt-out of this in the ServerConfig.");
if (Application::Settings.SendErrorsMessageEnabled) {
info("Sentry started! Reporting errors automatically. This sends data to the developers in case of errors and crashes. You can learn more, turn this message off or opt-out of this in the ServerConfig.toml.");
} else {
info("Sentry started");
}
}
} else {
info("Sentry disabled in unofficial build. Automatic error reporting disabled.");
if (Application::Settings.SendErrorsMessageEnabled) {
info("Sentry disabled in unofficial build. Automatic error reporting disabled.");
} else {
info("Sentry disabled in unofficial build");
}
}
}