mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-10-30 16:27:36 +08:00
修复启动参数log-size单位错误bug (#2598)
FileChannel内部已经把做了转换为MB操作,外面无须再乘以1024x1024
This commit is contained in:
parent
2771bc15a5
commit
2ad44bc773
@ -240,7 +240,7 @@ int start_main(int argc,char *argv[]) {
|
||||
// 日志最多保存天数
|
||||
fileChannel->setMaxDay(cmd_main["max_day"]);
|
||||
fileChannel->setFileMaxCount(cmd_main["log-slice"]);
|
||||
fileChannel->setFileMaxSize(1024 * 1024 * cmd_main["log-size"].as<uint32_t>());
|
||||
fileChannel->setFileMaxSize(cmd_main["log-size"]);
|
||||
Logger::Instance().add(fileChannel);
|
||||
#endif // !defined(ANDROID)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user