Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/gallery.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Paroz <github@oparoz.com>2015-09-07 15:05:08 +0300
committerOlivier Paroz <github@oparoz.com>2015-09-07 15:05:08 +0300
commit73fc4d6dae1bbc8c03debd64e091be515643e08b (patch)
treecf867572c04257eae7843556e117101abd9fbdb9 /middleware
parentc38f668c6da34a1d2c4afd990c558f8563a467c0 (diff)
Log exceptions in ServiceException directly
Diffstat (limited to 'middleware')
-rw-r--r--middleware/checkexception.php2
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);
}