From b86c83b0e062f0874c46f276b7b50944352ecaec Mon Sep 17 00:00:00 2001 From: winlin Date: Mon, 14 Apr 2014 12:14:01 +0800 Subject: [PATCH] refine the info for log to file. --- trunk/src/app/srs_app_config.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/trunk/src/app/srs_app_config.cpp b/trunk/src/app/srs_app_config.cpp index 852b76e93..b3c481a18 100644 --- a/trunk/src/app/srs_app_config.cpp +++ b/trunk/src/app/srs_app_config.cpp @@ -42,6 +42,8 @@ using namespace std; #include #include +#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& args) srs_error("line %d: unexpected end of file, expecting ; or \"}\"", buffer->line); return ERROR_SYSTEM_CONFIG_INVALID; } - srs_trace("config parsed 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"); }