mirror of
https://github.com/friendica/friendica
synced 2025-01-31 23:39:48 +00:00
Fix PHPStan error, fix code style
This commit is contained in:
parent
7ebb57c82b
commit
2f811f99de
1 changed files with 2 additions and 4 deletions
|
@ -35,8 +35,6 @@ final class LoggerManager
|
||||||
/**
|
/**
|
||||||
* Workaround: $logChannel must be static
|
* Workaround: $logChannel must be static
|
||||||
* because Dice always creates a new LoggerManager object
|
* because Dice always creates a new LoggerManager object
|
||||||
*
|
|
||||||
* @var LoggerInterface|null
|
|
||||||
*/
|
*/
|
||||||
private static string $logChannel = LogChannel::DEFAULT;
|
private static string $logChannel = LogChannel::DEFAULT;
|
||||||
|
|
||||||
|
@ -55,9 +53,9 @@ final class LoggerManager
|
||||||
$this->config = $config;
|
$this->config = $config;
|
||||||
$this->factory = $factory;
|
$this->factory = $factory;
|
||||||
|
|
||||||
$this->debug = (bool) $config->get('system', 'debugging') ?? false;
|
$this->debug = (bool) $config->get('system', 'debugging') ?? false;
|
||||||
$this->logLevel = (string) $config->get('system', 'loglevel') ?? LogLevel::NOTICE;
|
$this->logLevel = (string) $config->get('system', 'loglevel') ?? LogLevel::NOTICE;
|
||||||
$this->profiling = (bool) $config->get('system', 'profiling') ?? false;
|
$this->profiling = (bool) $config->get('system', 'profiling') ?? false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function changeLogChannel(string $logChannel): void
|
public function changeLogChannel(string $logChannel): void
|
||||||
|
|
Loading…
Add table
Reference in a new issue