feat: remove logs for local proxy

This commit is contained in:
aiamnezia
2026-01-19 16:25:59 +04:00
parent 33b2a3d2fc
commit ca5bca085b
2 changed files with 4 additions and 5 deletions
+4
View File
@@ -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;
}
-5
View File
@@ -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()