mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +02:00
parent
2083eec43d
commit
6a6662644e
@ -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();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user