From 4100af5ad3b0a88afe4bee6f0fe794abdb360b43 Mon Sep 17 00:00:00 2001 From: Yuri Kuznetsov Date: Mon, 26 May 2025 15:32:39 +0300 Subject: [PATCH] fix sa --- application/Espo/Tools/Email/SendService.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/application/Espo/Tools/Email/SendService.php b/application/Espo/Tools/Email/SendService.php index d621bfffe0..9e48f421bc 100644 --- a/application/Espo/Tools/Email/SendService.php +++ b/application/Espo/Tools/Email/SendService.php @@ -303,10 +303,10 @@ class SendService try { $this->groupAccountService->storeSentMessage($id, $message); } catch (Exception $e) { - $message = "Could not store sent email; group account {$groupAccount->getId()}); " . + $text = "Could not store sent email; group account {$groupAccount->getId()}); " . $e->getMessage() . "."; - $this->log->error($message, ['exception' => $e]); + $this->log->error($text, ['exception' => $e]); } } @@ -320,10 +320,10 @@ class SendService try { $this->personalAccountService->storeSentMessage($id, $message); } catch (Exception $e) { - $message = "Could not store sent email; personal account {$personalAccount->getId()}; " . + $text = "Could not store sent email; personal account {$personalAccount->getId()}; " . $e->getMessage() . "."; - $this->log->error($message, ['exception' => $e]); + $this->log->error($text, ['exception' => $e]); } } }