mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-22 13:37:22 +00:00
Replaced printf with correct logger->log call
- Use of printf breaks the flow of the console
This commit is contained in:
parent
8c6ef98b22
commit
932128a084
@ -646,7 +646,7 @@ void HandlePacket(Packet* packet) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
case MSG_MASTER_SHUTDOWN_UNIVERSE: {
|
case MSG_MASTER_SHUTDOWN_UNIVERSE: {
|
||||||
Game::logger->Log("MasterServer","Received shutdown universe command, ""shutting down in 10 minutes.\n");
|
Game::logger->Log("MasterServer","Received shutdown universe command, shutting down in 10 minutes.\n");
|
||||||
shouldShutdown = true;
|
shouldShutdown = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -677,7 +677,7 @@ void ShutdownSequence() {
|
|||||||
auto* objIdManager = ObjectIDManager::TryInstance();
|
auto* objIdManager = ObjectIDManager::TryInstance();
|
||||||
if (objIdManager != nullptr) {
|
if (objIdManager != nullptr) {
|
||||||
objIdManager->SaveToDatabase();
|
objIdManager->SaveToDatabase();
|
||||||
printf("Saved objidtracker...\n");
|
Game::logger->Log("MasterServer", "Saved ObjectIDTracker to DB\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
auto t = std::chrono::high_resolution_clock::now();
|
auto t = std::chrono::high_resolution_clock::now();
|
||||||
@ -687,7 +687,8 @@ void ShutdownSequence() {
|
|||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
printf("Attempting to shutdown instances, max 60 seconds...\n");
|
Game::logger->Log("MasterServer", "Attempting to shutdown instances, max 60 seconds...\n");
|
||||||
|
|
||||||
while (true) {
|
while (true) {
|
||||||
auto done = true;
|
auto done = true;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user