mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-06-17 22:23:03 +00:00
Sentry: reword
This commit is contained in:
@@ -48,7 +48,7 @@ void THeartbeatThread::operator()() {
|
|||||||
{ { "response-body", T },
|
{ { "response-body", T },
|
||||||
{ "request-body", Body } });
|
{ "request-body", Body } });
|
||||||
Sentry.SetTransaction(transaction);
|
Sentry.SetTransaction(transaction);
|
||||||
Sentry.Log(SENTRY_LEVEL_ERROR, "default", "wrong backend response format (" + std::to_string(ResponseCode) + ")");
|
Sentry.Log(SENTRY_LEVEL_ERROR, "default", "unexpected backend response (" + std::to_string(ResponseCode) + ")");
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
SentryReportError(Application::GetBackendHostname() + Target);
|
SentryReportError(Application::GetBackendHostname() + Target);
|
||||||
|
|||||||
+1
-1
@@ -303,7 +303,7 @@ void TNetwork::Authentication(SOCKET TCPSock) {
|
|||||||
{ { "response-body", Rc },
|
{ { "response-body", Rc },
|
||||||
{ "key", RequestString } });
|
{ "key", RequestString } });
|
||||||
Sentry.SetTransaction(Application::GetBackendUrlForAuth() + Target);
|
Sentry.SetTransaction(Application::GetBackendUrlForAuth() + Target);
|
||||||
Sentry.Log(SENTRY_LEVEL_ERROR, "default", "wrong backend response format (" + std::to_string(ResponseCode) + ")");
|
Sentry.Log(SENTRY_LEVEL_ERROR, "default", "unexpected backend response (" + std::to_string(ResponseCode) + ")");
|
||||||
return;
|
return;
|
||||||
} else if (Rc == "0") {
|
} else if (Rc == "0") {
|
||||||
auto Lock = Sentry.CreateExclusiveContext();
|
auto Lock = Sentry.CreateExclusiveContext();
|
||||||
|
|||||||
Reference in New Issue
Block a user