Clean up format logs (#682)

This commit is contained in:
avery
2022-07-26 23:52:53 -07:00
committed by GitHub
parent 9e08bb20d2
commit a632ef8ccd
4 changed files with 8 additions and 8 deletions

View File

@@ -31,7 +31,7 @@ void MigrationRunner::RunMigrations() {
delete stmt;
if (doExit) continue;
Game::logger->Log("MigrationRunner", "Running migration: " + migration.name + "");
Game::logger->Log("MigrationRunner", "Running migration: %s", migration.name.c_str());
finalSQL.append(migration.data);
finalSQL.append('\n');
@@ -49,7 +49,7 @@ void MigrationRunner::RunMigrations() {
delete simpleStatement;
}
catch (sql::SQLException e) {
Game::logger->Log("MigrationRunner", std::string("Encountered error running migration: ") + e.what() + "");
Game::logger->Log("MigrationRunner", "Encountered error running migration: %s", e.what());
}
}
}