Toggle navigation
Toggle navigation
此项目
正在载入...
Sign in
胡斌
/
srs
转到一个项目
Toggle navigation
项目
群组
代码片段
帮助
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
winlin
2014-04-14 12:14:01 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
b86c83b0e062f0874c46f276b7b50944352ecaec
b86c83b0
1 parent
ce64dafc
refine the info for log to file.
隐藏空白字符变更
内嵌
并排对比
正在显示
1 个修改的文件
包含
6 行增加
和
2 行删除
trunk/src/app/srs_app_config.cpp
trunk/src/app/srs_app_config.cpp
查看文件 @
b86c83b
...
...
@@ -42,6 +42,8 @@ using namespace std;
#include <srs_protocol_utility.hpp>
#include <srs_core_autofree.hpp>
#define SRS_WIKI_URL_LOG "https://github.com/winlinvip/simple-rtmp-server/wiki/SrsLog"
#define FILE_OFFSET(fd) lseek(fd, 0, SEEK_CUR)
int64_t
FILE_SIZE
(
int
fd
)
...
...
@@ -308,7 +310,7 @@ int SrsConfDirective::read_token(SrsFileBuffer* buffer, vector<string>& args)
srs_error
(
"line %d: unexpected end of file, expecting ; or
\"
}
\"
"
,
buffer
->
line
);
return
ERROR_SYSTEM_CONFIG_INVALID
;
}
srs_trace
(
"config parse
d EOF
"
);
srs_trace
(
"config parse
complete
"
);
return
ret
;
}
...
...
@@ -1140,7 +1142,9 @@ int SrsConfig::parse_file(const char* filename)
return
ret
;
}
if
(
get_srs_log_tank_file
())
{
srs_trace
(
"log file is %s"
,
log_filename
.
c_str
());
srs_trace
(
"write log to file %s"
,
log_filename
.
c_str
());
srs_trace
(
"you can: tailf %s"
,
log_filename
.
c_str
());
srs_trace
(
"@see: %s"
,
SRS_WIKI_URL_LOG
);
}
else
{
srs_trace
(
"write log to console"
);
}
...
...
请
注册
或
登录
后发表评论