Updates for logging
This commit is contained in:
parent
140895c2d7
commit
fbecca6950
|
|
@ -76,9 +76,10 @@ class EmailSuccess extends GenericMixedMetric
|
|||
*/
|
||||
public $string_metric8 = '';
|
||||
|
||||
public function __construct($string_metric7 = '', $string_metric8 = '')
|
||||
public function __construct($string_metric7 = '', $string_metric8 = '', string $string_metric9 = '')
|
||||
{
|
||||
$this->string_metric7 = $string_metric7;
|
||||
$this->string_metric8 = $string_metric8;
|
||||
$this->string_metric9 = $string_metric9;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -153,7 +153,7 @@ class NinjaMailerJob implements ShouldQueue
|
|||
|
||||
$this->incrementEmailCounter();
|
||||
|
||||
LightLogs::create(new EmailSuccess($this->nmo->company->company_key, $this->nmo->mailable->subject))
|
||||
LightLogs::create(new EmailSuccess($this->nmo->company->company_key, $this->nmo->mailable->subject, $this->nmo->mailable->viewData['text_body'] ?? ''))
|
||||
->send();
|
||||
|
||||
} catch (\Symfony\Component\Mailer\Exception\TransportException $e) {
|
||||
|
|
|
|||
|
|
@ -289,7 +289,7 @@ class Email implements ShouldQueue
|
|||
|
||||
$this->incrementEmailCounter();
|
||||
|
||||
LightLogs::create(new EmailSuccess($this->company->company_key, $this->mailable->subject))
|
||||
LightLogs::create(new EmailSuccess($this->company->company_key, $this->mailable->subject, $this->mailable->viewData['text_body'] ?? ''))
|
||||
->send();
|
||||
|
||||
} catch (\Symfony\Component\Mailer\Exception\TransportException $e) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue