mirror of
https://github.com/liyunfan1223/azerothcore-wotlk.git
synced 2026-08-07 15:28:02 +00:00
changed DISABLED_ cmake variable to ENABLED_ and implemented for all disabled logs
This commit is contained in:
@@ -2097,7 +2097,9 @@ void World::Update(uint32 diff)
|
||||
if (m_timers[WUPDATE_PINGDB].Passed())
|
||||
{
|
||||
m_timers[WUPDATE_PINGDB].Reset();
|
||||
;//sLog->outDetail("Ping MySQL to keep connection alive");
|
||||
#ifdef ENABLE_EXTRAS && ENABLE_EXTRA_LOGS
|
||||
sLog->outDetail("Ping MySQL to keep connection alive");
|
||||
#endif
|
||||
CharacterDatabase.KeepAlive();
|
||||
LoginDatabase.KeepAlive();
|
||||
WorldDatabase.KeepAlive();
|
||||
@@ -2567,7 +2569,9 @@ void World::ShutdownMsg(bool show, Player* player)
|
||||
ServerMessageType msgid = (m_ShutdownMask & SHUTDOWN_MASK_RESTART) ? SERVER_MSG_RESTART_TIME : SERVER_MSG_SHUTDOWN_TIME;
|
||||
|
||||
SendServerMessage(msgid, str.c_str(), player);
|
||||
;//sLog->outStaticDebug("Server is %s in %s", (m_ShutdownMask & SHUTDOWN_MASK_RESTART ? "restart" : "shuttingdown"), str.c_str());
|
||||
#ifdef ENABLE_EXTRAS && ENABLE_EXTRA_LOGS
|
||||
sLog->outStaticDebug("Server is %s in %s", (m_ShutdownMask & SHUTDOWN_MASK_RESTART ? "restart" : "shuttingdown"), str.c_str());
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2585,7 +2589,9 @@ void World::ShutdownCancel()
|
||||
m_ExitCode = SHUTDOWN_EXIT_CODE; // to default value
|
||||
SendServerMessage(msgid);
|
||||
|
||||
;//sLog->outStaticDebug("Server %s cancelled.", (m_ShutdownMask & SHUTDOWN_MASK_RESTART ? "restart" : "shuttingdown"));
|
||||
#ifdef ENABLE_EXTRAS && ENABLE_EXTRA_LOGS
|
||||
sLog->outStaticDebug("Server %s cancelled.", (m_ShutdownMask & SHUTDOWN_MASK_RESTART ? "restart" : "shuttingdown"));
|
||||
#endif
|
||||
|
||||
sScriptMgr->OnShutdownCancel();
|
||||
}
|
||||
@@ -2679,7 +2685,9 @@ void World::ProcessCliCommands()
|
||||
CliCommandHolder* command = NULL;
|
||||
while (cliCmdQueue.next(command))
|
||||
{
|
||||
;//sLog->outDetail("CLI command under processing...");
|
||||
#ifdef ENABLE_EXTRAS && ENABLE_EXTRA_LOGS
|
||||
sLog->outDetail("CLI command under processing...");
|
||||
#endif
|
||||
zprint = command->m_print;
|
||||
callbackArg = command->m_callbackArg;
|
||||
CliHandler handler(callbackArg, zprint);
|
||||
@@ -2747,7 +2755,9 @@ void World::SendAutoBroadcast()
|
||||
sWorld->SendGlobalMessage(&data);
|
||||
}
|
||||
|
||||
;//sLog->outDetail("AutoBroadcast: '%s'", msg.c_str());
|
||||
#ifdef ENABLE_EXTRAS && ENABLE_EXTRA_LOGS
|
||||
sLog->outDetail("AutoBroadcast: '%s'", msg.c_str());
|
||||
#endif
|
||||
}
|
||||
|
||||
void World::UpdateRealmCharCount(uint32 accountId)
|
||||
@@ -2947,7 +2957,9 @@ void World::ResetEventSeasonalQuests(uint16 event_id)
|
||||
|
||||
void World::ResetRandomBG()
|
||||
{
|
||||
;//sLog->outDetail("Random BG status reset for all characters.");
|
||||
#ifdef ENABLE_EXTRAS && ENABLE_EXTRA_LOGS
|
||||
sLog->outDetail("Random BG status reset for all characters.");
|
||||
#endif
|
||||
|
||||
PreparedStatement* stmt = CharacterDatabase.GetPreparedStatement(CHAR_DEL_BATTLEGROUND_RANDOM);
|
||||
CharacterDatabase.Execute(stmt);
|
||||
|
||||
Reference in New Issue
Block a user