summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorTom Needham <tom@owncloud.com>2013-10-12 09:15:08 +0100
committerTom Needham <tom@owncloud.com>2013-10-12 09:15:08 +0100
commit6f8dd547889e2479eac62f42217835d8d4f38f49 (patch)
tree8352a816311dee1f2f21f802f6b078f1b328d79b /lib
parentcf7ea4bec5be91790682417dfe5cc60eccab8a8a (diff)
downloadnextcloud-server-6f8dd547889e2479eac62f42217835d8d4f38f49.tar.gz
nextcloud-server-6f8dd547889e2479eac62f42217835d8d4f38f49.zip
Include exception message in log entry when session fails to start
Diffstat (limited to 'lib')
-rw-r--r--lib/base.php2
1 files changed, 1 insertions, 1 deletions
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");