mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
default write log to file.
This commit is contained in:
parent
76290a5a12
commit
ed20bd7078
3 changed files with 12 additions and 10 deletions
|
@ -1282,7 +1282,7 @@ string SrsConfig::get_srs_log_file()
|
|||
|
||||
SrsConfDirective* conf = root->get("srs_log_file");
|
||||
if (!conf || conf->arg0().empty()) {
|
||||
return "";
|
||||
return "./objs/srs.log";
|
||||
}
|
||||
|
||||
return conf->arg0();
|
||||
|
@ -1293,11 +1293,11 @@ bool SrsConfig::get_srs_log_tank_file()
|
|||
srs_assert(root);
|
||||
|
||||
SrsConfDirective* conf = root->get("srs_log_tank");
|
||||
if (conf && conf->arg0() == "file") {
|
||||
return true;
|
||||
if (conf && conf->arg0() == "console") {
|
||||
return false;
|
||||
}
|
||||
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
bool SrsConfig::get_deamon()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue