]> git.mxchange.org Git - hub.git/blobdiff - application/hub/exceptions.php
Merge branch 'master' into refacuring/protocol_handler
[hub.git] / application / hub / exceptions.php
index 38ca4bbd29f0e1b27414146e00fd9324715e3248..18642da28013a7d9a5c250f2cddef5be0296477b 100644 (file)
@@ -4,7 +4,7 @@
  *
  * @author             Roland Haeder <webmaster@shipsimu.org>
  * @version            0.0
- * @copyright  Copyright (c) 2007 - 2008 Roland Haeder, 2009 - 2012 Hub Developer Team
+ * @copyright  Copyright (c) 2007 - 2008 Roland Haeder, 2009 - 2014 Hub Developer Team
  * @license            GNU GPL 3.0 or any newer version
  *
  * This program is free software: you can redistribute it and/or modify
@@ -119,6 +119,9 @@ function __assertHandler ($file, $line, $code) {
                $code
        );
 
+       // Log assert
+       syslog(LOG_WARNING, $message);
+
        // Throw an exception here
        throw new AssertionException($message, BaseFrameworkSystem::EXCEPTION_ASSERTION_FAILED);
 } // END - function