diff options
author | Kargatum <dowlandtop@yandex.com> | 2022-05-31 17:05:39 +0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-31 17:05:39 +0700 |
commit | 4fbec972a8fe55d73744205322298791ded0c204 (patch) | |
tree | 9b183311815b3a25c46ea11e99c73c548460a0fb /src/server/database/Database/MySQLConnection.cpp | |
parent | 40a5eef152addba3949016938519fa61d9776f82 (diff) |
refactor(Cmake): add support build selected applications and tools (#11836)
Diffstat (limited to 'src/server/database/Database/MySQLConnection.cpp')
-rw-r--r-- | src/server/database/Database/MySQLConnection.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/database/Database/MySQLConnection.cpp b/src/server/database/Database/MySQLConnection.cpp index 632df7a456..b07f0d36cd 100644 --- a/src/server/database/Database/MySQLConnection.cpp +++ b/src/server/database/Database/MySQLConnection.cpp @@ -90,7 +90,7 @@ uint32 MySQLConnection::Open() MYSQL* mysqlInit = mysql_init(nullptr); if (!mysqlInit) { - LOG_ERROR("sql.sql", "Could not initialize Mysql connection to database `{}`", m_connectionInfo.database); + LOG_ERROR("sql.driver", "Could not initialize Mysql connection to database `{}`", m_connectionInfo.database); return CR_UNKNOWN_ERROR; } @@ -170,7 +170,7 @@ uint32 MySQLConnection::Open() } else { - LOG_ERROR("sql.sql", "Could not connect to MySQL database at {}: {}", m_connectionInfo.host, mysql_error(mysqlInit)); + LOG_ERROR("sql.driver", "Could not connect to MySQL database at {}: {}", m_connectionInfo.host, mysql_error(mysqlInit)); uint32 errorCode = mysql_errno(mysqlInit); mysql_close(mysqlInit); return errorCode; |