mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2025-07-04 00:36:14 +00:00
THeartbeatThread: fix error reporting
This commit is contained in:
parent
bea8006a26
commit
5a3140c84a
@ -41,8 +41,7 @@ void THeartbeatThread::operator()() {
|
||||
|
||||
if (T.substr(0, 2) != "20") {
|
||||
auto SentryReportError = [&](const std::string& transaction) {
|
||||
if (T.size() > std::string("YOU_SHALL_NOT_PASS").size()
|
||||
&& Application::Settings.Key.size() == 36) {
|
||||
if (T != "YOU_SHALL_NOT_PASS") {
|
||||
auto Lock = Sentry.CreateExclusiveContext();
|
||||
Sentry.SetContext("heartbeat",
|
||||
{ { "response-body", T },
|
||||
|
Loading…
x
Reference in New Issue
Block a user