mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-10-09 00:48:04 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user