Skip to content
Snippets Groups Projects
Commit 6f8dd547 authored by Tom Needham's avatar Tom Needham
Browse files

Include exception message in log entry when session fails to start

parent cf7ea4be
Branches
No related tags found
No related merge requests found
......@@ -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");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment