Skip to content

Commit

Permalink
feat. Fixed LOG messages (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
pangolp authored Sep 6, 2023
1 parent 83b1f00 commit f1621ae
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/TemplateNPC.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ void sTemplateNPC::LoadTalentsContainer()
m_TalentContainer.push_back(pTalent);
++count;
} while (result->NextRow());
LOG_INFO("module", ">> TEMPLATE NPC: Loaded %u talent templates in %u ms.", count, GetMSTimeDiffToNow(oldMSTime));
LOG_INFO("module", ">> TEMPLATE NPC: Loaded {} talent templates in {} ms.", count, GetMSTimeDiffToNow(oldMSTime));
}

void sTemplateNPC::LoadGlyphsContainer()
Expand Down Expand Up @@ -454,7 +454,7 @@ void sTemplateNPC::LoadGlyphsContainer()
++count;
} while (result->NextRow());

LOG_INFO("module", ">>TEMPLATE NPC: Loaded %u glyph templates in %u ms.", count, GetMSTimeDiffToNow(oldMSTime));
LOG_INFO("module", ">> TEMPLATE NPC: Loaded {} glyph templates in {} ms.", count, GetMSTimeDiffToNow(oldMSTime));
}

void sTemplateNPC::LoadHumanGearContainer()
Expand Down Expand Up @@ -495,7 +495,7 @@ void sTemplateNPC::LoadHumanGearContainer()
m_HumanGearContainer.push_back(pItem);
++count;
} while (result->NextRow());
LOG_INFO("module", ">> TEMPLATE NPC: Loaded %u gear templates for Humans in %u ms.", count, GetMSTimeDiffToNow(oldMSTime));
LOG_INFO("module", ">> TEMPLATE NPC: Loaded {} gear templates for Humans in {} ms.", count, GetMSTimeDiffToNow(oldMSTime));
}

void sTemplateNPC::LoadAllianceGearContainer()
Expand All @@ -512,7 +512,7 @@ void sTemplateNPC::LoadAllianceGearContainer()

if (!result)
{
LOG_INFO("module", ">> TEMPLATE NPC: Loaded 0 'gear templates. DB table `template_npc_alliance` is empty!");
LOG_INFO("module", ">> TEMPLATE NPC: Loaded 0 gear templates. DB table `template_npc_alliance` is empty!");
return;
}

Expand All @@ -536,7 +536,7 @@ void sTemplateNPC::LoadAllianceGearContainer()
m_AllianceGearContainer.push_back(pItem);
++count;
} while (result->NextRow());
LOG_INFO("module", ">> TEMPLATE NPC: Loaded %u gear templates for Alliances in %u ms.", count, GetMSTimeDiffToNow(oldMSTime));
LOG_INFO("module", ">> TEMPLATE NPC: Loaded {} gear templates for Alliances in {} ms.", count, GetMSTimeDiffToNow(oldMSTime));
}

void sTemplateNPC::LoadHordeGearContainer()
Expand All @@ -553,7 +553,7 @@ void sTemplateNPC::LoadHordeGearContainer()

if (!result)
{
LOG_INFO("module", ">> TEMPLATE NPC: Loaded 0 'gear templates. DB table `template_npc_horde` is empty!");
LOG_INFO("module", ">> TEMPLATE NPC: Loaded 0 gear templates. DB table `template_npc_horde` is empty!");
return;
}

Expand All @@ -577,7 +577,7 @@ void sTemplateNPC::LoadHordeGearContainer()
m_HordeGearContainer.push_back(pItem);
++count;
} while (result->NextRow());
LOG_INFO("module", ">> TEMPLATE NPC: Loaded %u gear templates for Hordes in %u ms.", count, GetMSTimeDiffToNow(oldMSTime));
LOG_INFO("module", ">> TEMPLATE NPC: Loaded {} gear templates for Hordes in {} ms.", count, GetMSTimeDiffToNow(oldMSTime));
}

std::string sTemplateNPC::GetClassString(Player* player)
Expand Down Expand Up @@ -1474,7 +1474,7 @@ class TemplateNPC_World : public WorldScript
void OnStartup() override
{
// Load templates for Template NPC #1
LOG_INFO("module", "== TEMPLATE NPC ===========================================================================");
LOG_INFO("module", "== TEMPLATE NPC ==");
LOG_INFO("module", "Loading Template Talents...");
sTemplateNpcMgr->LoadTalentsContainer();

Expand All @@ -1493,7 +1493,7 @@ class TemplateNPC_World : public WorldScript
// Load templates for Template NPC #5
LOG_INFO("module", "Loading Template Gear for Hordes...");
sTemplateNpcMgr->LoadHordeGearContainer();
LOG_INFO("module", "== END TEMPLATE NPC ===========================================================================");
LOG_INFO("module", "== END TEMPLATE NPC ==");
}
};

Expand Down

0 comments on commit f1621ae

Please sign in to comment.