chg: [testing] debug moved to log file

test_debug
iglocska 2024-03-21 11:42:13 +01:00
parent 88306ebded
commit be1c3ff8d6
No known key found for this signature in database
GPG Key ID: BEA224F1FEF113AC
1 changed files with 1 additions and 1 deletions

View File

@ -941,7 +941,7 @@ class Event extends AppModel
return false;
} catch (Exception $e) {
$errorMessage = $e->getMessage();
debug('__test__ : ' . json_encode($errorMessage));
file_put_contents(APP . '/tmp/logs/foobar.log', json_encode($errorMessage), FILE_APPEND);
if ($e instanceof HttpSocketHttpException && $e->getCode() === 403) {
// Do not log errors that are expected
$errorJson = $e->getResponse()->json();