From da6b75037865c01f4787e0b5b4bc22cedec5c987 Mon Sep 17 00:00:00 2001 From: Emil Tin Date: Sat, 15 Dec 2012 12:31:49 +0100 Subject: [PATCH] endl at launch instead of shutdown, more info during shutdown --- routed.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/routed.cpp b/routed.cpp index 87119eaa1..bdf30c652 100644 --- a/routed.cpp +++ b/routed.cpp @@ -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; }