mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-20 09:17:36 +01:00
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
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user