Fix log message for cli commands breaks the init script

fixes #8721
This commit is contained in:
Michael Friedrich 2015-03-12 15:53:56 +01:00
parent 2083eec43d
commit 6a6662644e
1 changed files with 2 additions and 6 deletions

View File

@ -106,12 +106,6 @@ Application::~Application(void)
void Application::Exit(int rc) void Application::Exit(int rc)
{ {
if (rc)
Log(LogCritical, "Application")
<< "Shutting down after a fatal error; exit code: " << rc;
else
Log(LogInformation, "Application", "Shutting down...");
std::cout.flush(); std::cout.flush();
BOOST_FOREACH(const Logger::Ptr& logger, Logger::GetLoggers()) { BOOST_FOREACH(const Logger::Ptr& logger, Logger::GetLoggers()) {
@ -315,6 +309,8 @@ mainloop:
goto mainloop; goto mainloop;
} }
Log(LogInformation, "Application", "Shutting down...");
DynamicObject::StopObjects(); DynamicObject::StopObjects();
Application::GetInstance()->OnShutdown(); Application::GetInstance()->OnShutdown();