mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-17 18:01:26 +08:00
perf: 优化日志输出控制
This commit is contained in:
@@ -3,7 +3,6 @@
|
||||
#include <meojson/json.hpp>
|
||||
|
||||
#include "Utils/Demangle.hpp"
|
||||
#include "Utils/LogControl.hpp"
|
||||
#include "Utils/Logger.hpp"
|
||||
|
||||
bool asst::AbstractConfig::load(const std::filesystem::path& path)
|
||||
@@ -16,9 +15,7 @@ bool asst::AbstractConfig::load(const std::filesystem::path& path)
|
||||
}
|
||||
m_path = path;
|
||||
|
||||
if (LogControl::is_enabled()) {
|
||||
LogTraceScope(class_name + " :: " + __FUNCTION__);
|
||||
}
|
||||
LogTraceScope(class_name + " :: " + __FUNCTION__);
|
||||
|
||||
auto ret = json::open(path, true);
|
||||
if (!ret) {
|
||||
|
||||
Reference in New Issue
Block a user