Replaced cout with correct logger->log call

-  Use of cout breaks the flow of the console
This commit is contained in:
cooltrain7 2021-12-13 01:29:38 +00:00
parent d7294bda55
commit 8c6ef98b22

View File

@ -28,7 +28,7 @@ void Database::Connect(const string& host, const string& database, const string&
void Database::Destroy() {
if (!con) return;
cout << "Destroying MySQL connection!" << endl;
Game::logger->Log("Database", "Destroying MySQL connection!\n");
con->close();
delete con;
} //Destroy