Make logger automatically put a newline (#675)

at the end of the line
remove all the newlines in log calls
This commit is contained in:
Aaron Kimbrell
2022-07-24 21:26:51 -05:00
committed by GitHub
parent a7fb6eb3f3
commit e97ae92624
86 changed files with 1249 additions and 1252 deletions

View File

@@ -31,7 +31,7 @@ void MigrationRunner::RunMigrations() {
delete stmt;
if (doExit) continue;
Game::logger->Log("MigrationRunner", "Running migration: " + migration.name + "\n");
Game::logger->Log("MigrationRunner", "Running migration: " + migration.name + "");
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() + "\n");
Game::logger->Log("MigrationRunner", std::string("Encountered error running migration: ") + e.what() + "");
}
}
}
@@ -60,7 +60,7 @@ Migration MigrationRunner::LoadMigration(std::string path) {
if (file.is_open()) {
std::hash<std::string> hash;
std::string line;
std::string total = "";
@@ -73,6 +73,6 @@ Migration MigrationRunner::LoadMigration(std::string path) {
migration.name = path;
migration.data = total;
}
return migration;
}