aboutsummaryrefslogtreecommitdiff
path: root/src/server/shared/Database/Transaction.cpp
diff options
context:
space:
mode:
authorMachiavelli <none@none>2010-08-26 21:50:54 +0200
committerMachiavelli <none@none>2010-08-26 21:50:54 +0200
commit175fece0737a36690a2f9c283809c5b04b5c2a3c (patch)
tree303f8521eca348c13cc650d71f453881586e5854 /src/server/shared/Database/Transaction.cpp
parent11de1d43695c289effc5dccb4663d16f927cb657 (diff)
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 --HG-- branch : trunk
Diffstat (limited to 'src/server/shared/Database/Transaction.cpp')
-rw-r--r--src/server/shared/Database/Transaction.cpp1
1 files changed, 1 insertions, 0 deletions
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<char*>(sql));
queries.pop();
m_conn->RollbackTransaction();