mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-31 04:56:20 +00:00
[Code] EQEmuLogSys Global to Singleton Cleanup
This commit is contained in:
+5
-5
@@ -387,7 +387,7 @@ public:
|
||||
entity_list.MessageStatus(
|
||||
0,
|
||||
AccountStatus::QuestTroupe,
|
||||
LogSys.GetGMSayColorFromCategory(log_category),
|
||||
EQEmuLogSys::Instance()->GetGMSayColorFromCategory(log_category),
|
||||
message_split[0].c_str()
|
||||
);
|
||||
|
||||
@@ -395,7 +395,7 @@ public:
|
||||
entity_list.MessageStatus(
|
||||
0,
|
||||
AccountStatus::QuestTroupe,
|
||||
LogSys.GetGMSayColorFromCategory(log_category),
|
||||
EQEmuLogSys::Instance()->GetGMSayColorFromCategory(log_category),
|
||||
fmt::format(
|
||||
"--- {}",
|
||||
message_split[iter]
|
||||
@@ -407,7 +407,7 @@ public:
|
||||
entity_list.MessageStatus(
|
||||
0,
|
||||
AccountStatus::QuestTroupe,
|
||||
LogSys.GetGMSayColorFromCategory(log_category),
|
||||
EQEmuLogSys::Instance()->GetGMSayColorFromCategory(log_category),
|
||||
fmt::format("[{}] [{}] {}", Logs::LogCategoryName[log_category], func, message).c_str()
|
||||
);
|
||||
}
|
||||
@@ -418,11 +418,11 @@ public:
|
||||
static void DiscordWebhookMessageHandler(uint16 log_category, int webhook_id, const std::string &message)
|
||||
{
|
||||
std::string message_prefix;
|
||||
if (!LogSys.origination_info.zone_short_name.empty()) {
|
||||
if (!EQEmuLogSys::Instance()->origination_info.zone_short_name.empty()) {
|
||||
message_prefix = fmt::format(
|
||||
"[**{}**] **Zone** [**{}**] ",
|
||||
Logs::LogCategoryName[log_category],
|
||||
LogSys.origination_info.zone_short_name
|
||||
EQEmuLogSys::Instance()->origination_info.zone_short_name
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user