forked from metin2/server
Made a small-scale test with the spdlog library. Incidentally added fmt.
This commit is contained in:
@@ -1233,11 +1233,11 @@ bool AccountDB::IsConnected()
|
||||
|
||||
bool AccountDB::Connect(const char * host, const int port, const char * user, const char * pwd, const char * db)
|
||||
{
|
||||
m_IsConnect = m_sql_direct.Setup(host, user, pwd, db, "", true, port);
|
||||
m_IsConnect = m_sql_direct.Setup(host, user, pwd, db, nullptr, true, port);
|
||||
|
||||
if (false == m_IsConnect)
|
||||
{
|
||||
fprintf(stderr, "cannot open direct sql connection to host: %s user: %s db: %s\n", host, user, db);
|
||||
SPDLOG_ERROR("cannot open direct sql connection to host: {} user: {} db: {}", host, user, db);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user