chg: [test] added some debug messages for the test

test_debug
iglocska 2024-03-21 10:32:54 +01:00
parent bfef7e88da
commit 4fb688efe4
No known key found for this signature in database
GPG Key ID: BEA224F1FEF113AC
2 changed files with 2 additions and 1 deletions

View File

@ -123,7 +123,7 @@ class ServerSyncTool
// In case of failure consider that event doesn't exists
$exists = false;
}
debug('Event_exists: ' . ($exists ? 'yes' : 'no'));
try {
return $exists ? $this->updateEvent($event) : $this->createEvent($event);
} catch (HttpSocketHttpException $e) {

View File

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