mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-06-22 02:01:08 +07:00
feat: remove logs for local proxy
This commit is contained in:
@@ -61,6 +61,10 @@ void ProxyLogger::error(const QString& message)
|
||||
|
||||
void ProxyLogger::logInternal(LogLevel level, const QString& message)
|
||||
{
|
||||
if (m_logPath.isEmpty()) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (level < m_currentLevel) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -8,15 +8,10 @@
|
||||
#include <QDebug>
|
||||
#include <QStandardPaths>
|
||||
|
||||
#include "proxylogger.h"
|
||||
|
||||
ProxyServer::ProxyServer(const std::shared_ptr<Settings> &settings, QObject *parent)
|
||||
: QObject(parent)
|
||||
, m_service(new ProxyService(settings, this))
|
||||
{
|
||||
const QString logDir = QStandardPaths::writableLocation(QStandardPaths::AppDataLocation) + "/logs";
|
||||
ProxyLogger::getInstance().init(logDir + "/proxy.log");
|
||||
ProxyLogger::getInstance().setLogLevel(ProxyLogger::LogLevel::Info);
|
||||
}
|
||||
|
||||
ProxyServer::~ProxyServer()
|
||||
|
||||
Reference in New Issue
Block a user