рефакторинг лога
This commit is contained in:
1 parent
1847fbdf5d
commit
dc05704ab3
11 files changed
+27
-27
No files matched your search
+2
-2
@@ -290,7 +290,7 @@ function adminSendMail($subject, $message, $file = false)
|
||||
}
|
||||
|
||||
$mail->send();
|
||||
Events::add('Выполнена отправка письма администратору. <code>'.Json::create($arMailFields).'</code>', 'info', 'core');
|
||||
Log::add('Выполнена отправка письма администратору. <code>'.Json::create($arMailFields).'</code>', 'info', 'core');
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -395,6 +395,6 @@ function sendPush($message, $title = 'Уведомление панели') {
|
||||
}
|
||||
catch (PushoverException $aException)
|
||||
{
|
||||
Events::add('Ошика отправки пуш уведомления: <code>'.implode(', ', $aException->getMessages()).'</code>', 'warning', 'push');
|
||||
Log::add('Ошика отправки пуш уведомления: <code>'.implode(', ', $aException->getMessages()).'</code>', 'warning', 'push');
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user