chore(Core/Logging): replace most server loggers (#5726)

* chore(Core/Logging): replace most server loggers

Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com>
This commit is contained in:
Kargatum
2021-06-21 08:07:12 +07:00
committed by GitHub
parent 9f80a592bb
commit 5787d00d54
199 changed files with 2312 additions and 4487 deletions

View File

@@ -129,4 +129,4 @@ public:
void AddSC_boss_drekthar()
{
new boss_drekthar;
}
}

View File

@@ -111,4 +111,4 @@ public:
void AddSC_boss_vanndar()
{
new boss_vanndar;
}
}

View File

@@ -249,9 +249,7 @@ public:
void SetData(uint32 type, uint32 data) override
{
#if defined(ENABLE_EXTRAS) && defined(ENABLE_EXTRA_LOGS)
LOG_DEBUG("scripts.ai", "TSCR: Instance Blackrock Depths: SetData update (Type: %u Data %u)", type, data);
#endif
switch (type)
{

View File

@@ -228,9 +228,7 @@ public:
void PrepareEncounter()
{
#if defined(ENABLE_EXTRAS) && defined(ENABLE_EXTRA_LOGS)
LOG_DEBUG("scripts.ai", "TSCR: Barnes Opera Event - Introduction complete - preparing encounter %d", m_uiEventId);
#endif
uint8 index = 0;
uint8 count = 0;

View File

@@ -239,9 +239,7 @@ public:
{
AddEscortState(STATE_ESCORT_RETURNING);
ReturnToLastPoint();
#if defined(ENABLE_EXTRAS) && defined(ENABLE_EXTRA_LOGS)
LOG_DEBUG("scripts.ai", "TSCR: EscortAI has left combat and is now returning to last point");
#endif
}
else
{

View File

@@ -215,18 +215,20 @@ public:
return;
std::istringstream ss(load);
//LOG_ERROR("server", "Zul'aman loaded, %s.", ss.str().c_str());
char dataHead; // S
uint16 data1, data2, data3;
ss >> dataHead >> data1 >> data2 >> data3;
//LOG_ERROR("server", "Zul'aman loaded, %d %d %d.", data1, data2, data3);
if (dataHead == 'S')
{
BossKilled = data1;
ChestLooted = data2;
QuestMinute = data3;
}
else LOG_ERROR("server", "Zul'aman: corrupted save data.");
else
{
LOG_ERROR("misc", "Zul'aman: corrupted save data.");
}
}
void SetData(uint32 type, uint32 data) override