diff options
author | Aokromes <Aokromes@users.noreply.github.com> | 2016-06-18 12:56:23 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-06-18 12:56:23 +0200 |
commit | e2e872d657a443aa7c26b066673882ae7426f715 (patch) | |
tree | 464a5947d4a58dec17eacae5cfd6bd385d0b71f4 /src | |
parent | e881afcd1c41026a951c627abd5d33fb585caf2e (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.
Diffstat (limited to 'src')
-rw-r--r-- | src/server/game/DungeonFinding/LFGMgr.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/server/game/DungeonFinding/LFGMgr.cpp b/src/server/game/DungeonFinding/LFGMgr.cpp index e72859c23e7..9550f435710 100644 --- a/src/server/game/DungeonFinding/LFGMgr.cpp +++ b/src/server/game/DungeonFinding/LFGMgr.cpp @@ -1904,8 +1904,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; } |