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
2015-01-02 12:36:08 +0800
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
fbc35c46aa92a6c08a9d1069b9dd089e34e940f2
fbc35c46
2 parents
76e8bb2d
629d2d89
Merge pull request #271 from tufang14/master
Update srs_app_log.cpp for #271
隐藏空白字符变更
内嵌
并排对比
正在显示
1 个修改的文件
包含
3 行增加
和
4 行删除
trunk/src/app/srs_app_log.cpp
trunk/src/app/srs_app_log.cpp
查看文件 @
fbc35c4
...
...
@@ -326,7 +326,6 @@ void SrsFastLog::write_log(int& fd, char *str_log, int size, int level)
// add some to the end of char.
str_log
[
size
++
]
=
LOG_TAIL
;
str_log
[
size
++
]
=
0
;
// if not to file, to console and return.
if
(
!
log_to_file_tank
)
{
...
...
@@ -336,11 +335,11 @@ void SrsFastLog::write_log(int& fd, char *str_log, int size, int level)
// \033[33m : yellow text code in shell
// \033[0m : normal text code
if
(
level
<=
SrsLogLevel
::
Trace
)
{
printf
(
"%
s"
,
str_log
);
printf
(
"%
.*s"
,
size
,
str_log
);
}
else
if
(
level
==
SrsLogLevel
::
Warn
)
{
printf
(
"
\033
[33m%
s
\033
[0m"
,
str_log
);
printf
(
"
\033
[33m%
.*s
\033
[0m"
,
size
,
str_log
);
}
else
{
printf
(
"
\033
[31m%
s
\033
[0m"
,
str_log
);
printf
(
"
\033
[31m%
.*s
\033
[0m"
,
size
,
str_log
);
}
return
;
...
...
请
注册
或
登录
后发表评论