From 175fece0737a36690a2f9c283809c5b04b5c2a3c Mon Sep 17 00:00:00 2001 From: Machiavelli Date: Thu, 26 Aug 2010 21:50:54 +0200 Subject: Core/Logging: - Implement sLog.outSQLDriver that will log SQL driver related events (non-content related). - Queries will now be logged into this file as well instead of normal log file (requires debug build). - Don“t forget to update your authserver.conf and worldserver.conf Core/build: - Fix non-PCH build MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --HG-- branch : trunk --- src/server/shared/Database/Transaction.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/server/shared/Database/Transaction.cpp') diff --git a/src/server/shared/Database/Transaction.cpp b/src/server/shared/Database/Transaction.cpp index c535afbc542..d0d8fc1dded 100644 --- a/src/server/shared/Database/Transaction.cpp +++ b/src/server/shared/Database/Transaction.cpp @@ -58,6 +58,7 @@ bool TransactionTask::Execute() sql = queries.front(); if (!m_conn->Execute(sql)) { + sLog.outSQLDriver("[Warning] Transaction aborted. %u queries not executed.", (uint32)queries.size()); free((void*)const_cast(sql)); queries.pop(); m_conn->RollbackTransaction(); -- cgit v1.2.3