mirror of https://github.com/Icinga/icinga2.git
parent
2083eec43d
commit
6a6662644e
|
@ -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();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue