Add (core\logging): Log sync db queries in mapupdater (#13638)
This will Log sync db queries in World::Update() loop for the mapupdater when building in debug. Originally part of TC Commit https://github.com/TrinityCore/TrinityCore/pull/25174 Apparently azerothcore never cherrypicked it entirely for whatever reason and is needed when running a debugger in debug build for me to find and address some recent crash issues that been posted on the issues to fully verify the issue. Co-Authored-By: Giacomo Pozzoni <giacomopoz@gmail.com>
This commit is contained in:
@@ -15,9 +15,10 @@
|
|||||||
* with this program. If not, see <http://www.gnu.org/licenses/>.
|
* with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "MapUpdater.h"
|
#include "DatabaseEnv.h"
|
||||||
#include "LFGMgr.h"
|
#include "LFGMgr.h"
|
||||||
#include "Map.h"
|
#include "Map.h"
|
||||||
|
#include "MapUpdater.h"
|
||||||
#include "Metric.h"
|
#include "Metric.h"
|
||||||
|
|
||||||
class UpdateRequest
|
class UpdateRequest
|
||||||
@@ -140,6 +141,10 @@ void MapUpdater::update_finished()
|
|||||||
|
|
||||||
void MapUpdater::WorkerThread()
|
void MapUpdater::WorkerThread()
|
||||||
{
|
{
|
||||||
|
LoginDatabase.WarnAboutSyncQueries(true);
|
||||||
|
CharacterDatabase.WarnAboutSyncQueries(true);
|
||||||
|
WorldDatabase.WarnAboutSyncQueries(true);
|
||||||
|
|
||||||
while (1)
|
while (1)
|
||||||
{
|
{
|
||||||
UpdateRequest* request = nullptr;
|
UpdateRequest* request = nullptr;
|
||||||
|
|||||||
Reference in New Issue
Block a user