Merge pull request #15692 from owncloud/log-exception-type-master
Write the type of exception to the log - really helpful for exceptions w...
This commit is contained in:
commit
8cb0d97b10
|
@ -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(),
|
||||
|
|
Loading…
Reference in New Issue