adds some more logging
authorPhilipp Schüle <p.schuele@metaways.de>
Wed, 1 Apr 2015 16:57:26 +0000 (18:57 +0200)
committerPhilipp Schüle <p.schuele@metaways.de>
Thu, 2 Apr 2015 08:00:07 +0000 (10:00 +0200)
* app to be updated
* empty app table

Change-Id: Ice21960f965f581e0ea2a7f1d3fd34c24329a24c
Reviewed-on: http://gerrit.tine20.com/customers/1791
Tested-by: Jenkins CI (http://ci.tine20.com/)
Reviewed-by: Philipp Schüle <p.schuele@metaways.de>
tine20/Setup/Controller.php
tine20/Tinebase/Frontend/Http.php

index 00b50bd..f77f809 100644 (file)
@@ -674,6 +674,7 @@ class Setup_Controller
             try {
                 $applicationTable = Setup_Core::getDb()->describeTable(SQL_TABLE_PREFIX . 'applications');
                 if (empty($applicationTable)) {
+                    Setup_Core::getLogger()->notice(__METHOD__ . '::' . __LINE__ . ' Applications table empty');
                     $result = TRUE;
                 }
             } catch (Zend_Db_Statement_Exception $zdse) {
index dc19b17..9eff0a3 100644 (file)
@@ -146,7 +146,8 @@ class Tinebase_Frontend_Http extends Tinebase_Frontend_Http_Abstract
 
         // display openId trust form
         } else if (isset($_GET['openid_action']) && $_GET['openid_action'] === 'trust') {
-            if (Tinebase_Core::isLogLevel(Zend_Log::DEBUG)) Tinebase_Core::getLogger()->debug(__METHOD__ . '::' . __LINE__ . " display openId trust screen");
+            if (Tinebase_Core::isLogLevel(Zend_Log::DEBUG)) Tinebase_Core::getLogger()->debug(__METHOD__ . '::' . __LINE__
+                . " Display openId trust screen");
             $view = new Zend_View();
             $view->setScriptPath('Tinebase/views');
             
@@ -202,6 +203,8 @@ class Tinebase_Frontend_Http extends Tinebase_Frontend_Http_Abstract
         $applications = Tinebase_Application::getInstance()->getApplicationsByState(Tinebase_Application::ENABLED);
         foreach ($applications as $application) {
             if ($setupController->updateNeeded($application)) {
+                if (Tinebase_Core::isLogLevel(Zend_Log::INFO)) Tinebase_Core::getLogger()->info(__METHOD__ . '::' . __LINE__
+                    . " " . $application->name . ' needs an update');
                 $this->setupRequired();
             }
         }