mirror of https://github.com/MISP/MISP
chg: [test] added some debug messages for the test
parent
bfef7e88da
commit
4fb688efe4
|
@ -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) {
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue