正在显示
1 个修改的文件
包含
6 行增加
和
2 行删除
| @@ -42,6 +42,8 @@ using namespace std; | @@ -42,6 +42,8 @@ using namespace std; | ||
| 42 | #include <srs_protocol_utility.hpp> | 42 | #include <srs_protocol_utility.hpp> |
| 43 | #include <srs_core_autofree.hpp> | 43 | #include <srs_core_autofree.hpp> |
| 44 | 44 | ||
| 45 | +#define SRS_WIKI_URL_LOG "https://github.com/winlinvip/simple-rtmp-server/wiki/SrsLog" | ||
| 46 | + | ||
| 45 | #define FILE_OFFSET(fd) lseek(fd, 0, SEEK_CUR) | 47 | #define FILE_OFFSET(fd) lseek(fd, 0, SEEK_CUR) |
| 46 | 48 | ||
| 47 | int64_t FILE_SIZE(int fd) | 49 | int64_t FILE_SIZE(int fd) |
| @@ -308,7 +310,7 @@ int SrsConfDirective::read_token(SrsFileBuffer* buffer, vector<string>& args) | @@ -308,7 +310,7 @@ int SrsConfDirective::read_token(SrsFileBuffer* buffer, vector<string>& args) | ||
| 308 | srs_error("line %d: unexpected end of file, expecting ; or \"}\"", buffer->line); | 310 | srs_error("line %d: unexpected end of file, expecting ; or \"}\"", buffer->line); |
| 309 | return ERROR_SYSTEM_CONFIG_INVALID; | 311 | return ERROR_SYSTEM_CONFIG_INVALID; |
| 310 | } | 312 | } |
| 311 | - srs_trace("config parsed EOF"); | 313 | + srs_trace("config parse complete"); |
| 312 | 314 | ||
| 313 | return ret; | 315 | return ret; |
| 314 | } | 316 | } |
| @@ -1140,7 +1142,9 @@ int SrsConfig::parse_file(const char* filename) | @@ -1140,7 +1142,9 @@ int SrsConfig::parse_file(const char* filename) | ||
| 1140 | return ret; | 1142 | return ret; |
| 1141 | } | 1143 | } |
| 1142 | if (get_srs_log_tank_file()) { | 1144 | if (get_srs_log_tank_file()) { |
| 1143 | - srs_trace("log file is %s", log_filename.c_str()); | 1145 | + srs_trace("write log to file %s", log_filename.c_str()); |
| 1146 | + srs_trace("you can: tailf %s", log_filename.c_str()); | ||
| 1147 | + srs_trace("@see: %s", SRS_WIKI_URL_LOG); | ||
| 1144 | } else { | 1148 | } else { |
| 1145 | srs_trace("write log to console"); | 1149 | srs_trace("write log to console"); |
| 1146 | } | 1150 | } |
-
请 注册 或 登录 后发表评论