THeartbeatThread: fix error reporting

This commit is contained in:
Lion Kortlepel authored and Lion committed 2021-09-08 19:55:03 +03:00
1 parent bea8006a26
commit 5a3140c84a
1 file changed
+1 -2
+1 -2
View File
@@ -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 },