[Pkg-owncloud-commits] [owncloud] 74/134: Fix 'Undefined variable: message' in OCP\Util::logException
David Prévot
taffit at moszumanska.debian.org
Fri Apr 18 21:44:03 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository owncloud.
commit f464620a65ca362a82a4cb1bf47ebff258db23df
Author: Thomas Tanghus <thomas at tanghus.net>
Date: Thu Mar 20 10:23:40 2014 +0100
Fix 'Undefined variable: message' in OCP\Util::logException
---
lib/public/util.php | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/lib/public/util.php b/lib/public/util.php
index e893a76..695fe6b 100644
--- a/lib/public/util.php
+++ b/lib/public/util.php
@@ -89,14 +89,11 @@ class Util {
*/
public static function logException( $app, \Exception $ex ) {
$class = get_class($ex);
- if ($class !== 'Exception') {
- $message = $class . ': ';
- }
- $message .= $ex->getMessage();
+ $message = $class . ': ' . $ex->getMessage();
if ($ex->getCode()) {
$message .= ' [' . $ex->getCode() . ']';
}
- \OCP\Util::writeLog($app, 'Exception: ' . $message, \OCP\Util::FATAL);
+ \OCP\Util::writeLog($app, $message, \OCP\Util::FATAL);
if (defined('DEBUG') and DEBUG) {
// also log stack trace
$stack = explode("\n", $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