mirror of
https://github.com/SantaSpeen/BeamMP-Server.git
synced 2026-04-04 23:26:01 +00:00
Heartbeat: Try backup1 and backup2, refactor sentry reporting
This commit is contained in:
@@ -124,14 +124,14 @@ std::string Http::POST(const std::string& host, const std::string& target, const
|
||||
|
||||
http::read(stream, buffer, response);
|
||||
|
||||
Sentry.AddExtra("reponse-code", std::to_string(response.result_int()));
|
||||
Sentry.SetExtra("reponse-code", std::to_string(response.result_int()));
|
||||
|
||||
for (const auto& header : response.base()) {
|
||||
// need to do explicit casts to convert string_view to string
|
||||
// since string_view may not be null-terminated (and in fact isn't, here)
|
||||
std::string KeyString(header.name_string());
|
||||
std::string ValueString(header.value());
|
||||
Sentry.AddExtra(KeyString, ValueString);
|
||||
Sentry.SetExtra(KeyString, ValueString);
|
||||
}
|
||||
|
||||
std::stringstream result;
|
||||
|
||||
Reference in New Issue
Block a user