mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-17 03:08:26 +00:00
[Logging] Add stack trace in code paths that shouldn't occur (#2453)
* [Logging] Add stack trace in code paths that shouldn't occur * Update zone_store.cpp * Windows workaround
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
#include "../../common/zone_store.h"
|
||||
|
||||
void WorldserverCLI::TestCommand(int argc, char **argv, argh::parser &cmd, std::string &description)
|
||||
{
|
||||
description = "Test command";
|
||||
@@ -6,4 +8,5 @@ void WorldserverCLI::TestCommand(int argc, char **argv, argh::parser &cmd, std::
|
||||
return;
|
||||
}
|
||||
|
||||
zone_store.GetZoneName(0, false);
|
||||
}
|
||||
|
||||
@@ -94,7 +94,7 @@ ZoneServer::~ZoneServer() {
|
||||
}
|
||||
}
|
||||
|
||||
bool ZoneServer::SetZone(uint32 in_zone_id, uint32 in_instance_id, bool is_static_zone) {
|
||||
bool ZoneServer::SetZone(uint32 in_zone_id, uint32 in_instance_id, bool in_is_static_zone) {
|
||||
is_booting_up = false;
|
||||
|
||||
std::string zone_short_name = ZoneName(in_zone_id, true);
|
||||
@@ -114,7 +114,7 @@ bool ZoneServer::SetZone(uint32 in_zone_id, uint32 in_instance_id, bool is_stati
|
||||
) :
|
||||
""
|
||||
),
|
||||
is_static_zone ? " (Static)" : ""
|
||||
in_is_static_zone ? " (Static)" : ""
|
||||
);
|
||||
}
|
||||
|
||||
@@ -130,7 +130,7 @@ bool ZoneServer::SetZone(uint32 in_zone_id, uint32 in_instance_id, bool is_stati
|
||||
LSSleepUpdate(GetPrevZoneID());
|
||||
}
|
||||
|
||||
is_static_zone = is_static_zone;
|
||||
is_static_zone = in_is_static_zone;
|
||||
|
||||
strn0cpy(zone_name, zone_short_name.c_str(), sizeof(zone_name));
|
||||
strn0cpy(long_name, zone_long_name.c_str(), sizeof(long_name));
|
||||
|
||||
+1
-1
@@ -40,7 +40,7 @@ public:
|
||||
void SendEmoteMessage(const char* to, uint32 to_guilddbid, int16 to_minstatus, uint32 type, const char* message, ...);
|
||||
void SendEmoteMessageRaw(const char* to, uint32 to_guilddbid, int16 to_minstatus, uint32 type, const char* message);
|
||||
void SendKeepAlive();
|
||||
bool SetZone(uint32 in_zone_id, uint32 in_instance_id = 0, bool is_static_zone = false);
|
||||
bool SetZone(uint32 in_zone_id, uint32 in_instance_id = 0, bool in_is_static_zone = false);
|
||||
void TriggerBootup(uint32 in_zone_id = 0, uint32 in_instance_id = 0, const char* admin_name = 0, bool is_static_zone = false);
|
||||
void Disconnect() { auto handle = tcpc->Handle(); if (handle) { handle->Disconnect(); } }
|
||||
void IncomingClient(Client* client);
|
||||
|
||||
Reference in New Issue
Block a user