Fix for logs crash

This commit is contained in:
KimLS 2016-11-01 00:04:34 -07:00
parent 8d729d4ea0
commit 90443891d6
2 changed files with 2 additions and 2 deletions

View File

@ -232,7 +232,7 @@ void Client::Handle_Login(const char* data, unsigned int size)
result = true;
}
else {
Log.OutF(Logs::General, Logs::Error, "Error logging in, user %s does not exist in the database.", user);
Log.OutF(Logs::General, Logs::Error, "Error logging in, user {0} does not exist in the database.", user);
result = false;
}
}

View File

@ -76,7 +76,7 @@ bool DatabaseMySQL::GetLoginDataFromAccountName(std::string name, std::string &p
if (mysql_query(database, query.str().c_str()) != 0)
{
Log.Out(Logs::General, Logs::Error, "Mysql query failed: %s", query.str().c_str());
Log.OutF(Logs::General, Logs::Error, "Mysql query failed: {0}", query.str());
return false;
}