mirror of
https://github.com/nextcloud/server.git
synced 2026-04-15 22:11:17 -04:00
Write the type of exception to the log - really helpful for exceptions which hold no message
This commit is contained in:
parent
aef6ecdbf1
commit
d671f13f26
1 changed files with 1 additions and 0 deletions
|
|
@ -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 a new issue