From cc81326ba6ea5dcfdcceca5849a264413e077c1c Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Sun, 16 Feb 2014 18:57:44 +0100 Subject: [PATCH] Log asserts. Signed-off-by: Roland Haeder --- application/hub/exceptions.php | 3 +++ 1 file changed, 3 insertions(+) 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 -- 2.39.5