mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-22 10:40:05 +08:00
修复c api日志路径设置可能出错的问题
This commit is contained in:
parent
63f22ee6f2
commit
5c6dcd041f
@ -87,7 +87,7 @@ API_EXPORT void API_CALL mk_env_init1(int thread_num,
|
||||
if (log_mask & LOG_FILE) {
|
||||
//日志文件
|
||||
auto channel = std::make_shared<FileChannel>("FileChannel",
|
||||
log_file_path ? File::absolutePath(log_file_path, "") :
|
||||
log_file_path ? File::absolutePath("", log_file_path) :
|
||||
exeDir() + "log/", (LogLevel) log_level);
|
||||
channel->setMaxDay(log_file_days ? log_file_days : 1);
|
||||
Logger::Instance().add(channel);
|
||||
|
Loading…
Reference in New Issue
Block a user