Skip to content

Commit

Permalink
调整日志文件记录等级以减小日志文件体积
Browse files Browse the repository at this point in the history
  • Loading branch information
super1207 committed Sep 21, 2022
1 parent bf29428 commit eb5f7eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MiraiCQ/MiraiCQ/log/MiraiLog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ MiraiLog::MiraiLog()
if (!g_is_plus)
{
auto logger = spdlog::daily_logger_mt("MiraiLog", get_exe_dir() + "log/main_daily.txt", 2, 30);
logger->set_level(spdlog::level::debug);
logger->set_level(spdlog::level::info);
logger->flush_on(spdlog::level::info);
}
else {
Expand Down

0 comments on commit eb5f7eb

Please sign in to comment.