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:
Machiavelli
2010-08-26 21:50:54 +02:00
parent 11de1d4369
commit 175fece073
7 changed files with 74 additions and 30 deletions

View File

@@ -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();