From: Tom Needham Date: Fri, 11 Oct 2013 15:45:58 +0000 (+0100) Subject: Log the session exception when ownCloud is not installed X-Git-Tag: v6.0.0alpha2~19^2~3 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=cb110c0679ab42ef218b88361b24281590e95fae;p=nextcloud-server.git Log the session exception when ownCloud is not installed --- diff --git a/lib/base.php b/lib/base.php index ff4ca588213..d4400dcf69c 100644 --- a/lib/base.php +++ b/lib/base.php @@ -304,9 +304,12 @@ 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::ERROR); - + if(!OC_Config::getValue('installed')) { + error_log('Session could not be initialized'); + } else { + OC_Log::write('core', 'Session could not be initialized', + OC_Log::ERROR); + } header('HTTP/1.1 500 Internal Server Error'); OC_Util::addStyle("styles"); $error = 'Session could not be initialized. Please contact your ';