1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

refine log and thread function name

This commit is contained in:
winlin 2014-04-04 12:18:05 +08:00
parent 1117f78587
commit 6d32ad1828
8 changed files with 19 additions and 17 deletions

View file

@ -686,13 +686,15 @@ int SrsConfig::parse_file(const char* filename)
// check log
std::string log_filename = this->get_srs_log_file();
if (this->get_srs_log_tank_file() && log_filename.empty()) {
if (get_srs_log_tank_file() && log_filename.empty()) {
ret = ERROR_SYSTEM_CONFIG_INVALID;
srs_error("must specifies the file to write log to. ret=%d", ret);
return ret;
}
if (!log_filename.empty()) {
if (get_srs_log_tank_file()) {
srs_trace("log file is %s", log_filename.c_str());
} else {
srs_trace("write log to console");
}
return ret;