From 4a6305f8cb48f89afd55b67f3ff30f149faa8784 Mon Sep 17 00:00:00 2001 From: Akkadius Date: Tue, 20 Jan 2015 00:21:00 -0600 Subject: [PATCH] MySQL Query Logging add rows returned --- common/dbcore.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/dbcore.cpp b/common/dbcore.cpp index 85cb768ce..ab26e5b8b 100644 --- a/common/dbcore.cpp +++ b/common/dbcore.cpp @@ -126,7 +126,7 @@ MySQLRequestResult DBcore::QueryDatabase(const char* query, uint32 querylen, boo MySQLRequestResult requestResult(res, (uint32)mysql_affected_rows(&mysql), rowCount, (uint32)mysql_field_count(&mysql), (uint32)mysql_insert_id(&mysql)); - Log.Out(Logs::General, Logs::MySQLQuery, "%s", query); + Log.Out(Logs::General, Logs::MySQLQuery, "(%u rows returned) %s", rowCount, query); #if DEBUG_MYSQL_QUERIES >= 1 if (requestResult.Success())