endl at launch instead of shutdown, more info during shutdown
This commit is contained in:
parent
96c872ac37
commit
da6b750378
@ -82,7 +82,7 @@ int main (int argc, char * argv[0]) {
|
|||||||
//}
|
//}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
std::cout << "[server] starting up engines, saved at " << __TIMESTAMP__ << std::endl;
|
std::cout << std::endl << "[server] starting up engines, saved at " << __TIMESTAMP__ << std::endl;
|
||||||
|
|
||||||
#ifndef _WIN32
|
#ifndef _WIN32
|
||||||
int sig = 0;
|
int sig = 0;
|
||||||
@ -135,11 +135,14 @@ int main (int argc, char * argv[0]) {
|
|||||||
s->Run();
|
s->Run();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
std::cout << std::endl << "[server] shutting down" << std::endl;
|
std::cout << "[server] initiating shutdown" << std::endl;
|
||||||
s->Stop();
|
s->Stop();
|
||||||
|
std::cout << "[server] stopping threads" << std::endl;
|
||||||
t.join();
|
t.join();
|
||||||
|
std::cout << "[server] freeing objects" << std::endl;
|
||||||
delete s;
|
delete s;
|
||||||
delete objects;
|
delete objects;
|
||||||
|
std::cout << "[server] shutdown completed" << std::endl;
|
||||||
} catch (std::exception& e) {
|
} catch (std::exception& e) {
|
||||||
std::cerr << "[fatal error] exception: " << e.what() << std::endl;
|
std::cerr << "[fatal error] exception: " << e.what() << std::endl;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user