Skip to content

Commit

Permalink
Merge branch 'develop' into KDESKTOP-786-Update-self-restarter
Browse files Browse the repository at this point in the history
  • Loading branch information
herve-er authored Apr 30, 2024
2 parents bf8b7cd + 3b47458 commit 1865f40
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 12 deletions.
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 @@ -3762,7 +3758,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 @@ -3779,8 +3775,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

0 comments on commit 1865f40

Please sign in to comment.