summaryrefslogtreecommitdiffstats
path: root/lib/base.php
diff options
context:
space:
mode:
authorBernhard Posselt <nukeawhale@gmail.com>2013-02-25 18:42:09 +0100
committerBernhard Posselt <nukeawhale@gmail.com>2013-02-25 18:42:09 +0100
commitbc2fefed59f2d3f662e34332065a3ba02cccdd6f (patch)
tree11afbf2fd978b9d24082c7f0d1d35d683347440d /lib/base.php
parent55c72617c6a582f25f3769872ad09d0494049a5f (diff)
downloadnextcloud-server-bc2fefed59f2d3f662e34332065a3ba02cccdd6f.tar.gz
nextcloud-server-bc2fefed59f2d3f662e34332065a3ba02cccdd6f.zip
write an error log when session could not be initialized
Diffstat (limited to 'lib/base.php')
-rw-r--r--lib/base.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/base.php b/lib/base.php
index 16aa7bff305..3ca2daccd29 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -322,6 +322,8 @@ class OC {
// if session cant be started break with http 500 error
if (session_start() === false){
+ OC_Log::write('core', 'Session could not be initialized',
+ OC_Log::ERROR);
header('HTTP/1.1 500 Internal Server Error');
exit(1);
}