update changelog and fix cs
This commit is contained in:
@@ -49,7 +49,6 @@ abstract class AbstractTlogDestination
|
||||
|
||||
// Appliquer les changements
|
||||
if ($apply_changes) $this->configure();
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -46,11 +46,13 @@ class TlogDestinationFile extends AbstractTlogDestination
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
protected function getFilePath() {
|
||||
protected function getFilePath()
|
||||
{
|
||||
return $this->getConfig(self::VAR_PATH_FILE);
|
||||
}
|
||||
|
||||
protected function getOpenMode() {
|
||||
protected function getOpenMode()
|
||||
{
|
||||
return strtolower($this->getConfig(self::VAR_MODE, self::VALEUR_MODE_DEFAULT)) == 'a' ? 'a' : 'w';
|
||||
}
|
||||
|
||||
|
||||
@@ -23,7 +23,6 @@
|
||||
|
||||
namespace Thelia\Log\Destination;
|
||||
|
||||
|
||||
use Thelia\Log\TlogDestinationConfig;
|
||||
use Thelia\Core\Translation\Translator;
|
||||
|
||||
@@ -98,4 +97,4 @@ class TlogDestinationRotatingFile extends TlogDestinationFile
|
||||
|
||||
return $arr;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -104,7 +104,7 @@ class Tlog Implements LoggerInterface
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private function __construct(){}
|
||||
private function __construct() {}
|
||||
|
||||
/**
|
||||
*
|
||||
@@ -665,11 +665,9 @@ class Tlog Implements LoggerInterface
|
||||
|
||||
if ($message instanceof \Exception) {
|
||||
$text = $message->getMessage()."\n".$message->getTraceAsString();
|
||||
}
|
||||
else if (is_scalar($message) === false) {
|
||||
} elseif (is_scalar($message) === false) {
|
||||
$text = print_r($message, 1);
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
$text = $message;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user