]> source.dussan.org Git - nextcloud-server.git/commitdiff
write an error log when session could not be initialized
authorBernhard Posselt <nukeawhale@gmail.com>
Mon, 25 Feb 2013 17:42:09 +0000 (18:42 +0100)
committerBernhard Posselt <nukeawhale@gmail.com>
Mon, 25 Feb 2013 17:42:09 +0000 (18:42 +0100)
lib/base.php

index 16aa7bff305fbae7aaa5cf55c617c1feb0a928e6..3ca2daccd29a9a2667aac3727d7befcc57494427 100644 (file)
@@ -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);
                }