mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-06-24 02:00:24 +07:00
Added activation and deactivation of logging without restarting the application
This commit is contained in:
@@ -80,6 +80,14 @@ bool Debug::init()
|
||||
return true;
|
||||
}
|
||||
|
||||
void Debug::deInit()
|
||||
{
|
||||
qInstallMessageHandler(0);
|
||||
qSetMessagePattern("%{message}");
|
||||
m_textStream.setDevice(nullptr);
|
||||
m_file.close();
|
||||
}
|
||||
|
||||
QString Debug::userLogsDir()
|
||||
{
|
||||
return QStandardPaths::writableLocation(QStandardPaths::AppDataLocation) + "/log";
|
||||
|
||||
Reference in New Issue
Block a user