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

support http api json, to PUT/POST, to 0.9.103

This commit is contained in:
winlin 2014-05-18 16:15:35 +08:00
parent b60e8418c6
commit d6355efe22
11 changed files with 358 additions and 43 deletions

View file

@ -88,8 +88,8 @@ int SrsFastLog::initialize()
_srs_config->subscribe(this);
log_to_file_tank = _srs_config->get_srs_log_tank_file();
_level = srs_get_log_level(_srs_config->get_srs_log_level());
log_to_file_tank = _srs_config->get_log_tank_file();
_level = srs_get_log_level(_srs_config->get_log_level());
return ret;
}
@ -202,7 +202,7 @@ int SrsFastLog::on_reload_log_tank()
int ret = ERROR_SUCCESS;
bool tank = log_to_file_tank;
log_to_file_tank = _srs_config->get_srs_log_tank_file();
log_to_file_tank = _srs_config->get_log_tank_file();
if (tank) {
return ret;
@ -224,7 +224,7 @@ int SrsFastLog::on_reload_log_level()
{
int ret = ERROR_SUCCESS;
_level = srs_get_log_level(_srs_config->get_srs_log_level());
_level = srs_get_log_level(_srs_config->get_log_level());
return ret;
}
@ -340,7 +340,7 @@ void SrsFastLog::write_log(int& fd, char *str_log, int size, int level)
void SrsFastLog::open_log_file()
{
std::string filename = _srs_config->get_srs_log_file();
std::string filename = _srs_config->get_log_file();
if (filename.empty()) {
return;