From c235b5c5a071ebdabdaa7a6ff2892683d89420f8 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 28 Feb 2023 18:43:26 +0100 Subject: [PATCH] Fix remove a bad error_log that was sending emails --- htdocs/core/lib/functions.lib.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php index 232cf479a1d..aa7294eac75 100644 --- a/htdocs/core/lib/functions.lib.php +++ b/htdocs/core/lib/functions.lib.php @@ -9030,11 +9030,9 @@ function dol_eval($s, $returnvalue = 0, $hideerrors = 1, $onlysimplestring = '1' } } } catch (Error $e) { - $error = 'Caught error : '; + $error = 'dol_eval try/catch error : '; $error .= $e->getMessage(); - //$error .= ', Trace : '; - //$error .= json_encode($e->getTrace()); - error_log($error, 1); + dol_syslog($error); } if ($returnvalue) { return '';