chore: 移除info类型日志的代码详细追踪信息

master
ternaryop8479 2026-02-14 23:58:00 +08:00
parent 00243a090f
commit 7b2699a74f
1 changed files with 129 additions and 129 deletions

View File

@ -1,9 +1,9 @@
#include "utils/logger.h"
#include <spdlog/spdlog.h>
#include <spdlog/sinks/stdout_color_sinks.h>
#include <spdlog/sinks/basic_file_sink.h>
#include <mutex>
#include <cstring>
#include <mutex>
#include <spdlog/sinks/basic_file_sink.h>
#include <spdlog/sinks/stdout_color_sinks.h>
#include <spdlog/spdlog.h>
namespace are {
@ -93,7 +93,7 @@ void Logger::log(LogLevel level, const char* file, const char* func,
}
// Format message with location information
std::string formatted = message + " (" + filename + "-" + func + "():" + std::to_string(line) + ")";
std::string formatted = (level != LogLevel::ARE_LOG_INFO) ? message + " (" + filename + "-" + func + "():" + std::to_string(line) + ")" : message;
try {
auto logger = std::static_pointer_cast<spdlog::logger>(logger_impl_);