Skip to content

EspoCRM – Open Source CRM Application

Log message change

Yurii11a506fbfb58
diff --git a/application/Espo/Core/Mail/Account/Fetcher.php b/application/Espo/Core/Mail/Account/Fetcher.php
index 433dd30f74..b9d1a76f92 100644
--- a/application/Espo/Core/Mail/Account/Fetcher.php
+++ b/application/Espo/Core/Mail/Account/Fetcher.php
@@ -312,10 +312,12 @@ class Fetcher
$storage->unmarkSeen($id);
}
} catch (Throwable $e) {
- $message = "{$account->getEntityType()} {$account->getId()}, get message; " .
- "{$e->getCode()} {$e->getMessage()}";
+ $message = "{$account->getEntityType()} {id}, get message.";
- $this->log->error($message, ['exception' => $e]);
+ $this->log->error($message, [
+ 'exception' => $e,
+ 'id' => $account->getId(),
+ ]);
return null;
}