mirror of
https://github.com/SantaSpeen/BeamMP-Server.git
synced 2026-02-16 18:00:40 +00:00
Sentry: remove authkey, use id instead
This commit is contained in:
@@ -327,13 +327,16 @@ void TServer::Apply(TClient& c, int VID, const std::string& pckt) {
|
||||
Sentry.AddExtra("packet", Packet);
|
||||
Sentry.AddExtra("vehicle-id", std::to_string(VID));
|
||||
Sentry.AddExtra("client-car-count", std::to_string(c.GetCarCount()));
|
||||
Sentry.LogDebug("attempt to apply change to nonexistent vehicle", _file_basename, _line);
|
||||
Sentry.LogError("attempt to apply change to nonexistent vehicle", _file_basename, _line);
|
||||
return;
|
||||
}
|
||||
std::string Header = VD.substr(0, VD.find('{'));
|
||||
|
||||
FoundPos = VD.find('{');
|
||||
if (FoundPos == std::string::npos) {
|
||||
auto Lock = Sentry.CreateExclusiveContext();
|
||||
Sentry.AddExtra("packet", VD);
|
||||
Sentry.LogError("malformed packet", _file_basename, _line);
|
||||
error("Malformed packet received, no '{' found");
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user