mirror of https://github.com/MISP/MISP
chg: [testing] debug moved to log file
parent
88306ebded
commit
be1c3ff8d6
|
@ -941,7 +941,7 @@ class Event extends AppModel
|
||||||
return false;
|
return false;
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
$errorMessage = $e->getMessage();
|
$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) {
|
if ($e instanceof HttpSocketHttpException && $e->getCode() === 403) {
|
||||||
// Do not log errors that are expected
|
// Do not log errors that are expected
|
||||||
$errorJson = $e->getResponse()->json();
|
$errorJson = $e->getResponse()->json();
|
||||||
|
|
Loading…
Reference in New Issue