mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
add log level in conf. change to 0.9.45
This commit is contained in:
parent
4984631cd6
commit
3f13726544
12 changed files with 103 additions and 43 deletions
|
@ -1288,6 +1288,18 @@ string SrsConfig::get_srs_log_file()
|
|||
return conf->arg0();
|
||||
}
|
||||
|
||||
string SrsConfig::get_srs_log_level()
|
||||
{
|
||||
srs_assert(root);
|
||||
|
||||
SrsConfDirective* conf = root->get("srs_log_level");
|
||||
if (!conf || conf->arg0().empty()) {
|
||||
return "trace";
|
||||
}
|
||||
|
||||
return conf->arg0();
|
||||
}
|
||||
|
||||
bool SrsConfig::get_srs_log_tank_file()
|
||||
{
|
||||
srs_assert(root);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue