mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-30 11:38:50 -07:00
Add shutdown logging
This commit is contained in:
parent
e3425cfa9e
commit
8114c11d58
1 changed files with 3 additions and 0 deletions
|
@ -810,6 +810,8 @@ void Application::cleanup()
|
||||||
if (!m_isCleanupRun.testAndSetAcquire(0, 1))
|
if (!m_isCleanupRun.testAndSetAcquire(0, 1))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
LogMsg(tr("qBittorrent termination initiated"));
|
||||||
|
|
||||||
#ifndef DISABLE_GUI
|
#ifndef DISABLE_GUI
|
||||||
if (m_window)
|
if (m_window)
|
||||||
{
|
{
|
||||||
|
@ -854,6 +856,7 @@ void Application::cleanup()
|
||||||
SearchPluginManager::freeInstance();
|
SearchPluginManager::freeInstance();
|
||||||
Utils::Fs::removeDirRecursively(Utils::Fs::tempPath());
|
Utils::Fs::removeDirRecursively(Utils::Fs::tempPath());
|
||||||
|
|
||||||
|
LogMsg(tr("qBittorrent is now ready to exit"));
|
||||||
Logger::freeInstance();
|
Logger::freeInstance();
|
||||||
delete m_fileLogger;
|
delete m_fileLogger;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue