aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAokromes <Aokromes@users.noreply.github.com>2016-06-18 12:56:23 +0200
committerjoschiwald <joschiwald.trinity@gmail.com>2017-01-29 21:51:05 +0100
commitdb7d279cdea1f9d98d0f531585cbde532d4b4226 (patch)
tree1af25085624fac2234a979d482f6c776b11d7f06 /src
parent6f49bc22518f4f7835b41b6857a47244dd518882 (diff)
Core/DungeonFinder: Add new log to allow to debug some issues
By Spp- on #14331 Enable lfg.allqueued DEBUG log. It will give more detailed info. (cherry picked from commit e2e872d657a443aa7c26b066673882ae7426f715)
Diffstat (limited to 'src')
-rw-r--r--src/server/game/DungeonFinding/LFGMgr.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/server/game/DungeonFinding/LFGMgr.cpp b/src/server/game/DungeonFinding/LFGMgr.cpp
index 0fc948e806d..6556e9a47f2 100644
--- a/src/server/game/DungeonFinding/LFGMgr.cpp
+++ b/src/server/game/DungeonFinding/LFGMgr.cpp
@@ -1917,8 +1917,16 @@ bool LFGMgr::AllQueued(GuidList const& check)
return false;
for (GuidList::const_iterator it = check.begin(); it != check.end(); ++it)
- if (GetState(*it) != LFG_STATE_QUEUED)
+ {
+ LfgState state = GetState(*it);
+ if (state != LFG_STATE_QUEUED)
+ {
+ if (state != LFG_STATE_PROPOSAL)
+ TC_LOG_DEBUG("lfg.allqueued", "Unexpected state found while trying to form new group. Guid: %s, State: %s", (*it).ToString().c_str(), GetStateString(state).c_str());
+
return false;
+ }
+ }
return true;
}