diff options
-rw-r--r-- | config/configexception.php | 3 | ||||
-rw-r--r-- | middleware/checkexception.php | 2 | ||||
-rw-r--r-- | service/serviceexception.php | 2 |
3 files changed, 5 insertions, 2 deletions
diff --git a/config/configexception.php b/config/configexception.php index d421f70f..e20f64d0 100644 --- a/config/configexception.php +++ b/config/configexception.php @@ -12,6 +12,8 @@ namespace OCA\Gallery\Config; +use OCP\Util; + /** * Thrown when the configuration parser cannot parse a file */ @@ -23,6 +25,7 @@ class ConfigException extends \Exception { * @param string $msg the message contained in the exception */ public function __construct($msg) { + Util::writeLog('gallery', 'Exception: ' . $msg, Util::ERROR); parent::__construct($msg); } } diff --git a/middleware/checkexception.php b/middleware/checkexception.php index 88695825..3c8cd72e 100644 --- a/middleware/checkexception.php +++ b/middleware/checkexception.php @@ -29,7 +29,7 @@ class CheckException extends \Exception { * @param int $code the HTTP status code */ public function __construct($msg, $code = 0) { - Util::writeLog('gallery', 'Exception' . $msg . ' (' . $code . ')', Util::ERROR); + Util::writeLog('gallery', 'Exception: ' . $msg . ' (' . $code . ')', Util::ERROR); parent::__construct($msg, $code); } diff --git a/service/serviceexception.php b/service/serviceexception.php index 062fb839..10cdf0a0 100644 --- a/service/serviceexception.php +++ b/service/serviceexception.php @@ -25,7 +25,7 @@ class ServiceException extends \Exception { * @param string $msg the message contained in the exception */ public function __construct($msg) { - Util::writeLog('gallery', 'Exception' . $msg, Util::ERROR); + Util::writeLog('gallery', 'Exception: ' . $msg, Util::ERROR); parent::__construct($msg); } } |