mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
Merge Actions::LoggerAuth() into Actions::LoggerAuthHelper()
This commit is contained in:
parent
6e24f45d4a
commit
f32f5347a7
1 changed files with 18 additions and 23 deletions
|
|
@ -532,8 +532,10 @@ class Actions
|
|||
return $this->oPlugins;
|
||||
}
|
||||
|
||||
public function LoggerAuth(): \MailSo\Log\Logger
|
||||
protected function LoggerAuthHelper(?Model\Account $oAccount = null, array $aAdditionalParams = array(), bool $admin = false): void
|
||||
{
|
||||
$sLine = $this->oConfig->Get('logs', 'auth_logging_format', '');
|
||||
if (!empty($sLine)) {
|
||||
if (!$this->oLoggerAuth) {
|
||||
$this->oLoggerAuth = new \MailSo\Log\Logger(false);
|
||||
if ($this->oConfig->Get('logs', 'auth_logging', false)) {
|
||||
|
|
@ -551,14 +553,7 @@ class Actions
|
|||
);
|
||||
}
|
||||
}
|
||||
return $this->oLoggerAuth;
|
||||
}
|
||||
|
||||
protected function LoggerAuthHelper(?Model\Account $oAccount = null, array $aAdditionalParams = array(), bool $admin = false): void
|
||||
{
|
||||
$sLine = $this->oConfig->Get('logs', 'auth_logging_format', '');
|
||||
if (!empty($sLine)) {
|
||||
$this->LoggerAuth()->Write($this->compileLogParams($sLine, $oAccount, $aAdditionalParams), \LOG_WARNING);
|
||||
$this->oLoggerAuth->Write($this->compileLogParams($sLine, $oAccount, $aAdditionalParams), \LOG_WARNING);
|
||||
}
|
||||
if (($this->oConfig->Get('logs', 'auth_logging', false) || $this->oConfig->Get('logs', 'auth_syslog', false))
|
||||
&& \openlog('snappymail', 0, \LOG_AUTHPRIV)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue