logs as txt

This commit is contained in:
Timendum 2016-01-20 22:02:24 +01:00
parent 96d0e8d5bf
commit ce4aa097d8
2 changed files with 3 additions and 3 deletions

View file

@ -232,7 +232,7 @@ class Downloader
$cmd .= " --restrict-filenames"; // --restrict-filenames is for specials chars
if($this->config["log"])
{
$cmd .= " > ".$this->config["logFolder"]."/$(date +\"%Y-%m-%d_%H-%M-%S-%N\").log";
$cmd .= " > ".$this->config["logFolder"]."/$(date +\"%Y-%m-%d_%H-%M-%S-%N\").txt";
}
else
{

View file

@ -42,7 +42,7 @@ class FileHandler
$folder = dirname(__DIR__).'/'.$this->config["logFolder"].'/';
foreach(glob($folder.'*.log', GLOB_BRACE) as $file)
foreach(glob($folder.'*.txt', GLOB_BRACE) as $file)
{
$content = [];
$content["name"] = str_replace($folder, "", $file);
@ -74,7 +74,7 @@ class FileHandler
$folder = dirname(__DIR__).'/'.$this->config["logFolder"].'/';
$i = 0;
foreach(glob($folder.'*.log', GLOB_BRACE) as $file)
foreach(glob($folder.'*.txt', GLOB_BRACE) as $file)
{
if($i == $id)
{