fix: correctly flush logs when there was a db migration error
This commit is contained in:
parent
eacdcfb980
commit
8b0b25ed0a
|
@ -508,15 +508,6 @@ void UninitializeWinix(Log & log, bool was_winix_running)
|
|||
{
|
||||
Winix::RemovePidFile();
|
||||
Winix::CleanupCurlLibrary();
|
||||
|
||||
if( was_winix_running )
|
||||
{
|
||||
log << Winix::logsave;
|
||||
}
|
||||
else
|
||||
{
|
||||
FlushLogToStdout(log);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@ -564,6 +555,7 @@ int main(int argc, const char ** argv, const char ** env)
|
|||
|
||||
Winix::LogInfo(log, Winix::log1, "Winix", true, "stopped");
|
||||
UninitializeWinix(log, run_status.should_continue);
|
||||
log << Winix::logsave;
|
||||
|
||||
return run_status.exit_code;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue