From d9f553d47f2bc4876cb988961aaaabbab7dc7e2c Mon Sep 17 00:00:00 2001 From: Yuri Kuznetsov Date: Sat, 4 May 2024 14:39:31 +0300 Subject: [PATCH] formula error fix --- application/Espo/Hooks/Common/Formula.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/application/Espo/Hooks/Common/Formula.php b/application/Espo/Hooks/Common/Formula.php index 525155c2f3..d030913237 100644 --- a/application/Espo/Hooks/Common/Formula.php +++ b/application/Espo/Hooks/Common/Formula.php @@ -81,7 +81,10 @@ class Formula implements BeforeSave $this->formulaManager->run($script, $entity, $variables); } catch (Exception $e) { - $this->log->error('Before-save formula script failed: ' . $e->getMessage()); + $this->log->critical('Before-save formula script failed. {message}', [ + 'message' => $e->getMessage(), + 'exception' => $e, + ]); } } }