mirror of
https://github.com/nuxsmin/sysPass.git
synced 2026-03-08 01:16:56 +01:00
refactor(php): Rebuild logging setup
Signed-off-by: Rubén D <nuxsmin@syspass.org>
This commit is contained in:
@@ -61,9 +61,7 @@ abstract class ModuleBase implements ModuleInterface
|
||||
*/
|
||||
protected function initEventHandlers(bool $partialInit = false): void
|
||||
{
|
||||
if (DEBUG || $this->configData->isDebug() || !$this->configData->isInstalled()) {
|
||||
$this->eventDispatcher->attach($this->providersHelper->getFileLogHandler());
|
||||
}
|
||||
$this->eventDispatcher->attach($this->providersHelper->getLogHandler());
|
||||
|
||||
if ($partialInit || !$this->configData->isInstalled()) {
|
||||
return;
|
||||
@@ -77,14 +75,6 @@ abstract class ModuleBase implements ModuleInterface
|
||||
$this->eventDispatcher->attach($this->providersHelper->getMailHandler());
|
||||
}
|
||||
|
||||
if ($this->configData->isSyslogEnabled()) {
|
||||
$this->eventDispatcher->attach($this->providersHelper->getSyslogHandler());
|
||||
}
|
||||
|
||||
if ($this->configData->isSyslogRemoteEnabled()) {
|
||||
$this->eventDispatcher->attach($this->providersHelper->getRemoteSyslogHandler());
|
||||
}
|
||||
|
||||
$this->eventDispatcher->attach($this->providersHelper->getAclHandler());
|
||||
$this->eventDispatcher->attach($this->providersHelper->getNotificationHandler());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user