Skip to content

Commit 4b6501b

Browse files
committed
fix
1 parent 1e2fb8a commit 4b6501b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

wrapper.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,11 @@ void initlog(std::string logDir, std::string logpath) {
6868
printf("log目录已创建, %s \n", logpath);
6969
}
7070
auto file_logger = spdlog::rotating_logger_mt("mspper", logpath.c_str(), 1048576 * 10, 50);
71-
file_logger->flush_on(spdlog::level::debug);
7271
// Console logger
7372
auto console_logger = spdlog::stdout_color_mt("stdout_console");
7473
auto err_logger = spdlog::stderr_color_mt("stderr_console");
7574
spdlog::set_default_logger(file_logger);
76-
spdlog::flush_on(spdlog::level::err);
75+
spdlog::flush_on(spdlog::level::debug);
7776
spdlog::flush_every(std::chrono::seconds(5));
7877
}
7978

0 commit comments

Comments
 (0)