|
|
@ -1940,9 +1940,8 @@ srs_error_t SrsConfig::parse_options(int argc, char** argv)
|
|
|
|
return srs_error_new(ERROR_SYSTEM_CONFIG_INVALID, "no log file");
|
|
|
|
return srs_error_new(ERROR_SYSTEM_CONFIG_INVALID, "no log file");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (get_log_tank_file()) {
|
|
|
|
if (get_log_tank_file()) {
|
|
|
|
srs_trace("write log to file %s", log_filename.c_str());
|
|
|
|
srs_trace("you can check log by: tail -f %s (@see %s)", log_filename.c_str(), SRS_WIKI_URL_LOG);
|
|
|
|
srs_trace("you can: tailf %s", log_filename.c_str());
|
|
|
|
srs_trace("please check SRS by: ./etc/init.d/srs status");
|
|
|
|
srs_trace("@see: %s", SRS_WIKI_URL_LOG);
|
|
|
|
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
srs_trace("write log to console");
|
|
|
|
srs_trace("write log to console");
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -3618,9 +3617,8 @@ srs_error_t SrsConfig::check_normal_config()
|
|
|
|
return srs_error_new(ERROR_SYSTEM_CONFIG_INVALID, "log file is empty");
|
|
|
|
return srs_error_new(ERROR_SYSTEM_CONFIG_INVALID, "log file is empty");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (get_log_tank_file()) {
|
|
|
|
if (get_log_tank_file()) {
|
|
|
|
srs_trace("write log to file %s", log_filename.c_str());
|
|
|
|
srs_trace("you can check log by: tail -f %s (@see %s)", log_filename.c_str(), SRS_WIKI_URL_LOG);
|
|
|
|
srs_trace("you can: tailf %s", log_filename.c_str());
|
|
|
|
srs_trace("please check SRS by: ./etc/init.d/srs status");
|
|
|
|
srs_trace("@see: %s", SRS_WIKI_URL_LOG);
|
|
|
|
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
srs_trace("write log to console");
|
|
|
|
srs_trace("write log to console");
|
|
|
|
}
|
|
|
|
}
|
|
|
|