Merge pull request #5524 from turbo124/v5-develop

Fixes for string length in analyticS
This commit is contained in:
David Bomba 2021-04-25 10:56:47 +10:00 committed by GitHub
commit c8e7f28470
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -206,7 +206,7 @@ class NinjaMailerJob implements ShouldQueue
$job_failure = new EmailFailure($this->nmo->company->company_key);
$job_failure->string_metric5 = get_parent_class($this);
$job_failure->string_metric6 = $exception->getMessage();
$job_failure->string_metric6 = substr($exception->getMessage(), 0, 150);
LightLogs::create($job_failure)
->batch();