aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Globals/ObjectMgr.cpp
diff options
context:
space:
mode:
authorOvahlord <dreadkiller@gmx.de>2025-04-16 11:50:08 +0200
committerOvahlord <dreadkiller@gmx.de>2025-04-16 11:54:02 +0200
commit642e0f2148cc718b2e45f1c3338343be06e14bb2 (patch)
treef026f030eb274a98d49238c79b25947522c5f9e1 /src/server/game/Globals/ObjectMgr.cpp
parentfe51562cd13908d5b697a6366bd84e40052163e8 (diff)
Core/Quests: corrected error logging for quest loading helpers
(cherry picked from commit 2e971321cf4648a5deceb73074967d48fc94c020)
Diffstat (limited to 'src/server/game/Globals/ObjectMgr.cpp')
-rw-r--r--src/server/game/Globals/ObjectMgr.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/server/game/Globals/ObjectMgr.cpp b/src/server/game/Globals/ObjectMgr.cpp
index b55015ef935..a1d6535ea63 100644
--- a/src/server/game/Globals/ObjectMgr.cpp
+++ b/src/server/game/Globals/ObjectMgr.cpp
@@ -4705,7 +4705,7 @@ void ObjectMgr::LoadQuests()
if (itr != _questTemplates.end())
(itr->second.get()->*loader.LoaderFunction)(fields);
else
- TC_LOG_ERROR("server.loading", "Table `{}` has data for quest {} but such quest does not exist", loader.TableName, questId);
+ TC_LOG_ERROR("sql.sql", "Table `{}` has data for quest {} but such quest does not exist", loader.TableName, questId);
} while (result->NextRow());
}
}
@@ -4715,9 +4715,7 @@ void ObjectMgr::LoadQuests()
result = WorldDatabase.Query("SELECT v.ID AS vID, o.ID AS oID, o.QuestID, v.Index, v.VisualEffect FROM quest_visual_effect AS v LEFT JOIN quest_objectives AS o ON v.ID = o.ID ORDER BY v.Index DESC");
if (!result)
- {
- TC_LOG_ERROR("server.loading", ">> Loaded 0 quest visual effects. DB table `quest_visual_effect` is empty.");
- }
+ TC_LOG_INFO("server.loading", ">> Loaded 0 quest visual effects. DB table `quest_visual_effect` is empty.");
else
{
do
@@ -4728,14 +4726,14 @@ void ObjectMgr::LoadQuests()
if (!vID)
{
- TC_LOG_ERROR("server.loading", "Table `quest_visual_effect` has visual effect for null objective id");
+ TC_LOG_ERROR("sql.sql", "Table `quest_visual_effect` has visual effect for null objective id");
continue;
}
// objID will be null if match for table join is not found
if (vID != oID)
{
- TC_LOG_ERROR("server.loading", "Table `quest_visual_effect` has visual effect for objective {} but such objective does not exist.", vID);
+ TC_LOG_ERROR("sql.sql", "Table `quest_visual_effect` has visual effect for objective {} but such objective does not exist.", vID);
continue;
}