mirror of
https://github.com/SantaSpeen/BeamMP-Server.git
synced 2026-06-17 16:50:54 +00:00
handle Rc == "0" case, add sentry info event
This commit is contained in:
@@ -303,6 +303,12 @@ void TNetwork::Authentication(SOCKET TCPSock) {
|
|||||||
Sentry.SetTransaction(Application::GetBackendUrlForAuth() + Target);
|
Sentry.SetTransaction(Application::GetBackendUrlForAuth() + Target);
|
||||||
Sentry.Log(SENTRY_LEVEL_ERROR, "default", "auth: wrong backend response format");
|
Sentry.Log(SENTRY_LEVEL_ERROR, "default", "auth: wrong backend response format");
|
||||||
return;
|
return;
|
||||||
|
} else if (Rc == "0") {
|
||||||
|
auto Lock = Sentry.CreateExclusiveContext();
|
||||||
|
Sentry.SetExtra("response-body", Rc);
|
||||||
|
Sentry.SetExtra("key", RequestString);
|
||||||
|
Sentry.SetTransaction(Application::GetBackendUrlForAuth() + Target);
|
||||||
|
Sentry.Log(SENTRY_LEVEL_INFO, "default", "backend returned 0 instead of json");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (AuthResponse["username"].IsString() && AuthResponse["roles"].IsString()
|
if (AuthResponse["username"].IsString() && AuthResponse["roles"].IsString()
|
||||||
|
|||||||
Reference in New Issue
Block a user