Skip to content

EspoCRM – Open Source CRM Application

error ref

Yuri Kuznetsovb16024f20576
diff --git a/application/Espo/Tools/Email/SendService.php b/application/Espo/Tools/Email/SendService.php
index 06790aaa37..d621bfffe0 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) {
- $this->log->error(
- "Email sending: Could not store sent email (Group Email Account {$groupAccount->getId()}): " .
- $e->getMessage() . "."
- );
+ $message = "Could not store sent email; group account {$groupAccount->getId()}); " .
+ $e->getMessage() . ".";
+
+ $this->log->error($message, ['exception' => $e]);
}
}
@@ -320,10 +320,10 @@ class SendService
try {
$this->personalAccountService->storeSentMessage($id, $message);
} catch (Exception $e) {
- $this->log->error(
- "Email sending: Could not store sent email (Email Account {$personalAccount->getId()}): " .
- $e->getMessage() . "."
- );
+ $message = "Could not store sent email; personal account {$personalAccount->getId()}; " .
+ $e->getMessage() . ".";
+
+ $this->log->error($message, ['exception' => $e]);
}
}
}