fix: silence QuestLogCache error spam in normal chat

Demote GetQuest/GetQuestObjectives 'quest doesn't exist in QuestLogCache'
messages from Questie:Error to Questie:Debug(DEBUG_DEVELOP). These were
firing repeatedly in chat for quest IDs like 595, 959, 254048 during normal
play. Messages are now only visible when developer debug mode is active.
This commit is contained in:
Xurkon
2026-05-04 21:14:22 -05:00
parent 79e7ee94cc
commit 98b4010352
3 changed files with 14 additions and 5 deletions
+4 -4
View File
@@ -286,8 +286,8 @@ function QuestLogCache.GetQuest(questId)
if questId == 0 or (not Questie.started) then
return nil
end
Questie:Print(debugstack(1, 20, 4))
Questie:Error("Please report this error. GetQuest: The quest doesn't exist in QuestLogCache.", questId)
Questie:Debug(Questie.DEBUG_DEVELOP, debugstack(1, 20, 4))
Questie:Debug(Questie.DEBUG_DEVELOP, "GetQuest: The quest doesn't exist in QuestLogCache.", questId)
return nil
end
return cache[questId]
@@ -303,8 +303,8 @@ function QuestLogCache.GetQuestObjectives(questId)
if questId == 0 or (not Questie.started) then
return {}
end
Questie:Print(debugstack(1, 20, 4))
Questie:Error("Please report this error. GetQuestObjectives: The quest doesn't exist in QuestLogCache.", questId)
Questie:Debug(Questie.DEBUG_DEVELOP, debugstack(1, 20, 4))
Questie:Debug(Questie.DEBUG_DEVELOP, "GetQuestObjectives: The quest doesn't exist in QuestLogCache.", questId)
return {}
end
return cache[questId].objectives