Skip to content
This repository has been archived by the owner on Aug 18, 2021. It is now read-only.

Commit

Permalink
fix: fixed Trojan log level
Browse files Browse the repository at this point in the history
  • Loading branch information
Qv2ray-dev authored and Qv2ray-dev committed Apr 22, 2020
1 parent 14c30a6 commit 80483fa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 1 addition & 5 deletions core/Kernel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ void TrojanKernel::SetConnectionSettings(const QString &listenAddress, const QMa
//
Config config;
config.run_type = Config::CLIENT;
//
config.log_level = Log::INFO; //
config.password[Config::SHA224(o.password.toStdString())] = o.password.toStdString();
config.remote_addr = o.address.toStdString();
config.remote_port = o.port;
Expand Down Expand Up @@ -123,10 +123,6 @@ void TrojanKernelThread::run()
{
try
{
Log::level = Log::Level::INFO;
Log::logger = TrojanPluginKernelLogger;
Config::add_recv_len = TrojanPluginAddRcvdAmout;
Config::add_sent_len = TrojanPluginAddSentAmout;
service = std::make_unique<Service>(config);
service->run();
}
Expand Down
3 changes: 3 additions & 0 deletions core/Kernel.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ class TrojanKernelThread : public QThread
public:
TrojanKernelThread(QObject *parent = nullptr) : QThread(parent)
{
Log::logger = TrojanPluginKernelLogger;
Config::add_recv_len = TrojanPluginAddRcvdAmout;
Config::add_sent_len = TrojanPluginAddSentAmout;
self = this;
};
~TrojanKernelThread();
Expand Down

0 comments on commit 80483fa

Please sign in to comment.