chore: 移除info类型日志的代码详细追踪信息
parent
00243a090f
commit
7b2699a74f
|
|
@ -1,9 +1,9 @@
|
||||||
#include "utils/logger.h"
|
#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 <cstring>
|
||||||
|
#include <mutex>
|
||||||
|
#include <spdlog/sinks/basic_file_sink.h>
|
||||||
|
#include <spdlog/sinks/stdout_color_sinks.h>
|
||||||
|
#include <spdlog/spdlog.h>
|
||||||
|
|
||||||
namespace are {
|
namespace are {
|
||||||
|
|
||||||
|
|
@ -93,7 +93,7 @@ void Logger::log(LogLevel level, const char* file, const char* func,
|
||||||
}
|
}
|
||||||
|
|
||||||
// Format message with location information
|
// 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 {
|
try {
|
||||||
auto logger = std::static_pointer_cast<spdlog::logger>(logger_impl_);
|
auto logger = std::static_pointer_cast<spdlog::logger>(logger_impl_);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue