mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
refine main object(server, config, log, context), handler reload in intialize(), change to 0.9.59
This commit is contained in:
parent
7c64a893f5
commit
b38df9cd1a
8 changed files with 90 additions and 63 deletions
|
@ -31,6 +31,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|||
#include <fcntl.h>
|
||||
|
||||
#include <srs_app_config.hpp>
|
||||
#include <srs_kernel_error.hpp>
|
||||
|
||||
SrsThreadContext::SrsThreadContext()
|
||||
{
|
||||
|
@ -65,8 +66,6 @@ SrsFastLog::SrsFastLog()
|
|||
log_data = new char[LOG_MAX_SIZE];
|
||||
|
||||
fd = -1;
|
||||
|
||||
// TODO: support reload.
|
||||
}
|
||||
|
||||
SrsFastLog::~SrsFastLog()
|
||||
|
@ -79,6 +78,12 @@ SrsFastLog::~SrsFastLog()
|
|||
}
|
||||
}
|
||||
|
||||
int SrsFastLog::initialize()
|
||||
{
|
||||
// TODO: support reload.
|
||||
return ERROR_SUCCESS;
|
||||
}
|
||||
|
||||
int SrsFastLog::level()
|
||||
{
|
||||
return _level;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue