Http, Heartbeat: Process status < 0 differently, report as "Invalid

Response Code"
This commit is contained in:
Lion Kortlepel
2021-09-14 12:34:28 +02:00
committed by Lion
parent 6883c96d33
commit 15704abf6c
2 changed files with 1 additions and 3 deletions

View File

@@ -36,9 +36,6 @@ void THeartbeatThread::operator()() {
Body += "&pps=" + Application::PPS();
auto SentryReportError = [&](const std::string& transaction, int status) {
if (status < 0) {
status = 0;
}
auto Lock = Sentry.CreateExclusiveContext();
Sentry.SetContext("heartbeat",
{ { "response-body", T },