From: Tom Needham Date: Sat, 12 Oct 2013 08:15:08 +0000 (+0100) Subject: Include exception message in log entry when session fails to start X-Git-Tag: v6.0.0alpha2~19^2~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=6f8dd547889e2479eac62f42217835d8d4f38f49;p=nextcloud-server.git Include exception message in log entry when session fails to start --- diff --git a/lib/base.php b/lib/base.php index 4744491141e..9068fe76981 100644 --- a/lib/base.php +++ b/lib/base.php @@ -304,7 +304,7 @@ class OC { self::$session = new \OC\Session\Internal(OC_Util::getInstanceId()); // if session cant be started break with http 500 error } catch (Exception $e) { - OC_Log::write('core', 'Session could not be initialized', + OC_Log::write('core', 'Session could not be initialized. Exception message: '.$e->getMessage(), OC_Log::ERROR); header('HTTP/1.1 500 Internal Server Error'); OC_Util::addStyle("styles");