From 6abbafe810672a5bcac527cdf7088c6528d6b6ce Mon Sep 17 00:00:00 2001 From: Michael Friedrich Date: Thu, 12 Mar 2015 15:53:56 +0100 Subject: [PATCH] Fix log message for cli commands breaks the init script fixes #8721 --- lib/base/application.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/lib/base/application.cpp b/lib/base/application.cpp index 4d72652b4..ca0c33874 100644 --- a/lib/base/application.cpp +++ b/lib/base/application.cpp @@ -106,12 +106,6 @@ Application::~Application(void) 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(); BOOST_FOREACH(const Logger::Ptr& logger, Logger::GetLoggers()) { @@ -315,6 +309,8 @@ mainloop: goto mainloop; } + Log(LogInformation, "Application", "Shutting down..."); + DynamicObject::StopObjects(); Application::GetInstance()->OnShutdown(); -- 2.40.0