test log config

This commit is contained in:
Timendum 2016-01-20 21:24:20 +01:00
parent 3c73609521
commit d96e25c850
2 changed files with 10 additions and 2 deletions

View file

@ -206,7 +206,15 @@ class Downloader
} }
$cmd .= " --restrict-filenames"; // --restrict-filenames is for specials chars $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); shell_exec($cmd);
} }

View file

@ -8,7 +8,7 @@ return array(
"password" => "63a9f0ea7bb98050796b649e85481845", "password" => "63a9f0ea7bb98050796b649e85481845",
"outputFolder" => "downloads", "outputFolder" => "downloads",
"extracter" => "avconv", "extracter" => "avconv",
"log" => true, "log" => "logs",
"max_dl" => 3); "max_dl" => 3);
?> ?>