[Pkg-owncloud-commits] [owncloud] 31/165: Write the type of exception to the log - really helpful for exceptions which hold no message

David Prévot taffit at moszumanska.debian.org
Thu Apr 23 04:06:19 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch stable8
in repository owncloud.

commit d671f13f26abddabcb773b87f15a9b286de40bdb
Author: Thomas Müller <thomas.mueller at tmit.eu>
Date:   Fri Apr 17 13:10:10 2015 +0200

    Write the type of exception to the log - really helpful for exceptions which hold no message
---
 lib/public/util.php | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/public/util.php b/lib/public/util.php
index 626c980..bc7f1b1 100644
--- a/lib/public/util.php
+++ b/lib/public/util.php
@@ -141,6 +141,7 @@ class Util {
 	 */
 	public static function logException( $app, \Exception $ex, $level = \OCP\Util::FATAL ) {
 		$exception = array(
+			'Exception' => get_class($ex),
 			'Message' => $ex->getMessage(),
 			'Code' => $ex->getCode(),
 			'Trace' => $ex->getTraceAsString(),

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list