]> source.dussan.org Git - nextcloud-server.git/commitdiff
Include exception message in log entry when session fails to start
authorTom Needham <tom@owncloud.com>
Sat, 12 Oct 2013 08:15:08 +0000 (09:15 +0100)
committerTom Needham <tom@owncloud.com>
Sat, 12 Oct 2013 08:15:08 +0000 (09:15 +0100)
lib/base.php

index 4744491141e3cb3fdf85860cd7212da805309b21..9068fe7698177fcd40f9902b5fb3a7f3ac9d86d1 100644 (file)
@@ -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");