diff options
author | Olivier Paroz <github@oparoz.com> | 2015-09-07 15:05:08 +0300 |
---|---|---|
committer | Olivier Paroz <github@oparoz.com> | 2015-09-07 15:05:08 +0300 |
commit | 73fc4d6dae1bbc8c03debd64e091be515643e08b (patch) | |
tree | cf867572c04257eae7843556e117101abd9fbdb9 /middleware | |
parent | c38f668c6da34a1d2c4afd990c558f8563a467c0 (diff) |
Log exceptions in ServiceException directly
Diffstat (limited to 'middleware')
-rw-r--r-- | middleware/checkexception.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/middleware/checkexception.php b/middleware/checkexception.php index b3c71209..88695825 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', $msg . ' (' . $code . ')', Util::ERROR); + Util::writeLog('gallery', 'Exception' . $msg . ' (' . $code . ')', Util::ERROR); parent::__construct($msg, $code); } |