From 356f3b6bc58327be42994a9eeebc8392377ec895 Mon Sep 17 00:00:00 2001 From: click Date: Sun, 8 Mar 2015 07:47:17 +0100 Subject: Core: INFO->ERROR level adjustment in ObjectMgr.cpp Suggest everyone attempt to remember this: TC_LOG_TRACE = extreme debugging (debuginfo with packetstructures/data) TC_LOG_DEBUG = debugging (detailed activity of functions and activites inside core) TC_LOG_INFO = normal runstate (regular info like logins/logouts/levelups/passwordchanges etc) TC_LOG_WARN = possible issue with config/data etc - things that are not how they should be) TC_LOG_ERROR = actual error that has been either caought or must be fixed at some point TC_LOG_FATAL = crash or data corruption imminent Using the right logmech also helps distinguishing between 'regular runtime info' and stuff that might lead to a pissy situation later on... :) --- src/server/game/Globals/ObjectMgr.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/server/game/Globals/ObjectMgr.cpp b/src/server/game/Globals/ObjectMgr.cpp index f0d7d039dd5..2a421a45ecb 100644 --- a/src/server/game/Globals/ObjectMgr.cpp +++ b/src/server/game/Globals/ObjectMgr.cpp @@ -8635,7 +8635,7 @@ void ObjectMgr::LoadBroadcastTexts() if (!GetLanguageDescByID(bct.Language)) { - TC_LOG_INFO("sql.sql", "BroadcastText (Id: %u) in table `broadcast_text` using Language %u but Language does not exist. Skipped.", bct.Id, bct.Language); + TC_LOG_ERROR("sql.sql", "BroadcastText (Id: %u) in table `broadcast_text` using Language %u but Language does not exist. Skipped.", bct.Id, bct.Language); // don't load bct of higher expansions continue; } @@ -8644,7 +8644,7 @@ void ObjectMgr::LoadBroadcastTexts() { if (!sEmotesStore.LookupEntry(bct.EmoteId0)) { - TC_LOG_INFO("sql.sql", "BroadcastText (Id: %u) in table `broadcast_text` has EmoteId0 %u but emote does not exist. Skipped.", bct.Id, bct.EmoteId0); + TC_LOG_ERROR("sql.sql", "BroadcastText (Id: %u) in table `broadcast_text` has EmoteId0 %u but emote does not exist. Skipped.", bct.Id, bct.EmoteId0); // don't load bct of higher expansions continue; } @@ -8654,7 +8654,7 @@ void ObjectMgr::LoadBroadcastTexts() { if (!sEmotesStore.LookupEntry(bct.EmoteId1)) { - TC_LOG_INFO("sql.sql", "BroadcastText (Id: %u) in table `broadcast_text` has EmoteId1 %u but emote does not exist. Skipped.", bct.Id, bct.EmoteId1); + TC_LOG_ERROR("sql.sql", "BroadcastText (Id: %u) in table `broadcast_text` has EmoteId1 %u but emote does not exist. Skipped.", bct.Id, bct.EmoteId1); // don't load bct of higher expansions continue; } @@ -8664,7 +8664,7 @@ void ObjectMgr::LoadBroadcastTexts() { if (!sEmotesStore.LookupEntry(bct.EmoteId2)) { - TC_LOG_INFO("sql.sql", "BroadcastText (Id: %u) in table `broadcast_text` has EmoteId2 %u but emote does not exist. Skipped.", bct.Id, bct.EmoteId2); + TC_LOG_ERROR("sql.sql", "BroadcastText (Id: %u) in table `broadcast_text` has EmoteId2 %u but emote does not exist. Skipped.", bct.Id, bct.EmoteId2); // don't load bct of higher expansions continue; } -- cgit v1.2.3