From 2db84f5a4fd53ef382b6725c7df610bf66e7ba9d Mon Sep 17 00:00:00 2001 From: Chris Miles Date: Wed, 27 Dec 2023 20:04:18 -0600 Subject: [PATCH] [MySQL] Fix MySQL Query error formatting (#3808) --- common/dbcore.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/dbcore.cpp b/common/dbcore.cpp index 410362dfa..ab7cd945a 100644 --- a/common/dbcore.cpp +++ b/common/dbcore.cpp @@ -138,7 +138,7 @@ MySQLRequestResult DBcore::QueryDatabase(const char *query, uint32 querylen, boo * Error logging */ if (mysql_errno(mysql) > 0 && query[0] != '\0') { - LogMySQLError("[{}] [{}]\n[{}]", mysql_errno(mysql), mysql_error(mysql), query); + LogMySQLError("MySQL Error ({}) [{}] Query [{}]", mysql_errno(mysql), mysql_error(mysql), query); } return MySQLRequestResult(nullptr, 0, 0, 0, 0, mysql_errno(mysql), errorBuffer);