Permalink
Browse files

endl at launch instead of shutdown, more info during shutdown

  • Loading branch information...
1 parent 96c872a commit da6b75037865c01f4787e0b5b4bc22cedec5c987 @emiltin emiltin committed Dec 15, 2012
Showing with 5 additions and 2 deletions.
  1. +5 −2 routed.cpp
View
@@ -82,7 +82,7 @@ int main (int argc, char * argv[0]) {
//}
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
int sig = 0;
@@ -135,11 +135,14 @@ int main (int argc, char * argv[0]) {
s->Run();
#endif
- std::cout << std::endl << "[server] shutting down" << std::endl;
+ std::cout << "[server] initiating shutdown" << std::endl;
s->Stop();
+ std::cout << "[server] stopping threads" << std::endl;
t.join();
+ std::cout << "[server] freeing objects" << std::endl;
delete s;
delete objects;
+ std::cout << "[server] shutdown completed" << std::endl;
} catch (std::exception& e) {
std::cerr << "[fatal error] exception: " << e.what() << std::endl;
}

0 comments on commit da6b750

Please sign in to comment.