mirror of
https://github.com/timendum/Youtube-dl-WebUI.git
synced 2024-11-15 03:24:38 +08:00
test log config
This commit is contained in:
parent
3c73609521
commit
d96e25c850
2 changed files with 10 additions and 2 deletions
|
@ -206,7 +206,15 @@ class Downloader
|
|||
}
|
||||
|
||||
$cmd .= " --restrict-filenames"; // --restrict-filenames is for specials chars
|
||||
$cmd .= " > /dev/null & echo $!";
|
||||
if($this->config["logs"])
|
||||
{
|
||||
$cmd .= " > ".$this->config["logs"]."/$(date +\"%Y-%m-%d_%H-%M-%S-%N\").log";
|
||||
}
|
||||
else
|
||||
{
|
||||
$cmd .= " > /dev/null ";
|
||||
}
|
||||
$cmd .= " & echo $!";
|
||||
|
||||
shell_exec($cmd);
|
||||
}
|
||||
|
|
|
@ -8,7 +8,7 @@ return array(
|
|||
"password" => "63a9f0ea7bb98050796b649e85481845",
|
||||
"outputFolder" => "downloads",
|
||||
"extracter" => "avconv",
|
||||
"log" => true,
|
||||
"log" => "logs",
|
||||
"max_dl" => 3);
|
||||
|
||||
?>
|
||||
|
|
Loading…
Reference in a new issue