mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-02 23:40:26 +00:00
[Code] EQEmuLogSys Global to Singleton Cleanup (#4925)
* [Code] EQEmuLogSys Global to Singleton Cleanup * Post merge fix
This commit is contained in:
+6
-6
@@ -175,7 +175,7 @@ bool Zone::Bootup(uint32 iZoneID, uint32 iInstanceID, bool is_static) {
|
||||
/*
|
||||
* Set Logging
|
||||
*/
|
||||
LogSys.StartFileLogs(StringFormat("%s_version_%u_inst_id_%u_port_%u", zone->GetShortName(), zone->GetInstanceVersion(), zone->GetInstanceID(), ZoneConfig::get()->ZonePort));
|
||||
EQEmuLogSys::Instance()->StartFileLogs(StringFormat("%s_version_%u_inst_id_%u_port_%u", zone->GetShortName(), zone->GetInstanceVersion(), zone->GetInstanceID(), ZoneConfig::get()->ZonePort));
|
||||
|
||||
return true;
|
||||
}
|
||||
@@ -943,7 +943,7 @@ void Zone::Shutdown(bool quiet)
|
||||
parse->ReloadQuests(true);
|
||||
UpdateWindowTitle(nullptr);
|
||||
|
||||
LogSys.CloseFileLogs();
|
||||
EQEmuLogSys::Instance()->CloseFileLogs();
|
||||
|
||||
if (RuleB(Zone, KillProcessOnDynamicShutdown)) {
|
||||
LogInfo("Shutting down");
|
||||
@@ -1241,9 +1241,9 @@ bool Zone::Init(bool is_static) {
|
||||
LogInfo("Zone booted successfully zone_id [{}] time_offset [{}]", zoneid, zone_time.getEQTimeZone());
|
||||
|
||||
// logging origination information
|
||||
LogSys.origination_info.zone_short_name = zone->short_name;
|
||||
LogSys.origination_info.zone_long_name = zone->long_name;
|
||||
LogSys.origination_info.instance_id = zone->instanceid;
|
||||
EQEmuLogSys::Instance()->origination_info.zone_short_name = zone->short_name;
|
||||
EQEmuLogSys::Instance()->origination_info.zone_long_name = zone->long_name;
|
||||
EQEmuLogSys::Instance()->origination_info.instance_id = zone->instanceid;
|
||||
|
||||
return true;
|
||||
}
|
||||
@@ -2865,7 +2865,7 @@ void Zone::SendDiscordMessage(const std::string& webhook_name, const std::string
|
||||
bool not_found = true;
|
||||
|
||||
for (int i= 0; i < MAX_DISCORD_WEBHOOK_ID; i++) {
|
||||
auto &w = LogSys.GetDiscordWebhooks()[i];
|
||||
auto &w = EQEmuLogSys::Instance()->GetDiscordWebhooks()[i];
|
||||
if (w.webhook_name == webhook_name) {
|
||||
SendDiscordMessage(w.id, message + "\n");
|
||||
not_found = false;
|
||||
|
||||
Reference in New Issue
Block a user