From: Roland Haeder Date: Sun, 16 Feb 2014 17:57:44 +0000 (+0100) Subject: Log asserts. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=cc81326ba6ea5dcfdcceca5849a264413e077c1c;p=hub.git Log asserts. Signed-off-by: Roland Haeder --- diff --git a/application/hub/exceptions.php b/application/hub/exceptions.php index 38ca4bbd2..ffb05434e 100644 --- a/application/hub/exceptions.php +++ b/application/hub/exceptions.php @@ -119,6 +119,9 @@ function __assertHandler ($file, $line, $code) { $code ); + // Log assert + syslog($message); + // Throw an exception here throw new AssertionException($message, BaseFrameworkSystem::EXCEPTION_ASSERTION_FAILED); } // END - function