Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KDESKTOP-751-Remove-sentry-message-just-keep-errors #83

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions src/gui/appclient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,6 @@ static void displayHelpText(const QString &t) {


AppClient::AppClient(int &argc, char **argv) : SharedTools::QtSingleApplication(Theme::instance()->appClientName(), argc, argv) {
#ifdef NDEBUG
sentry_capture_event(sentry_value_new_message_event(SENTRY_LEVEL_INFO, "AppClient", "Start"));
#endif

_startedAt.start();

setOrganizationDomain(QLatin1String(APPLICATION_REV_DOMAIN));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -840,7 +840,7 @@ ExitCode ComputeFSOperationWorker::checkIfOkToDelete(ReplicaSide side, const Syn
LOGW_SYNCPAL_DEBUG(_logger, L"Item " << Path2WStr(absolutePath).c_str()
<< L" still exists on local replica. Snapshot not up to date, restarting sync.");
#ifdef NDEBUG
sentry_capture_event(sentry_value_new_message_event(SENTRY_LEVEL_INFO, "ComputeFSOperationWorker::checkIfOkToDelete",
sentry_capture_event(sentry_value_new_message_event(SENTRY_LEVEL_WARNING, "ComputeFSOperationWorker::checkIfOkToDelete",
"Unwanted local delete operation averted"));
#endif

Expand Down
9 changes: 2 additions & 7 deletions src/server/appserver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,10 +126,6 @@ AppServer::AppServer(int &argc, char **argv)
_versionAsked(false),
_clearSyncNodesAsked(false),
_debugMode(false) {
#ifdef NDEBUG
sentry_capture_event(sentry_value_new_message_event(SENTRY_LEVEL_INFO, "AppServer", "Start"));
#endif

_startedAt.start();

setOrganizationDomain(QLatin1String(APPLICATION_REV_DOMAIN));
Expand Down Expand Up @@ -3697,7 +3693,7 @@ void AppServer::addError(const Error &error) {
}

#ifdef NDEBUG
sentry_capture_event(sentry_value_new_message_event(SENTRY_LEVEL_INFO, "AppServer::addError", "Sockets defuncted error"));
sentry_capture_event(sentry_value_new_message_event(SENTRY_LEVEL_WARNING, "AppServer::addError", "Sockets defuncted error"));
#endif
}

Expand All @@ -3714,8 +3710,7 @@ void AppServer::addError(const Error &error) {
sentry_set_user(sentryUser);

sentry_capture_event(
sentry_value_new_message_event(error.exitCode() != ExitCodeOk ? SENTRY_LEVEL_WARNING : SENTRY_LEVEL_INFO,
"AppServer::addError", error.errorString().c_str()));
sentry_value_new_message_event(SENTRY_LEVEL_WARNING, "AppServer::addError", error.errorString().c_str()));

sentry_remove_user();
}
Expand Down
Loading