diff options
author | Robin Appelman <icewind@owncloud.com> | 2012-05-19 01:55:20 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2012-05-19 01:55:20 +0200 |
commit | b096fd9ed8811c92177864f76e91ae939d42ead4 (patch) | |
tree | 0d21e65854b03d357e15602883c4f14aedcf1517 | |
parent | df64b9b0e9a5181bd162efde180f2fef23a13f3d (diff) | |
download | nextcloud-server-b096fd9ed8811c92177864f76e91ae939d42ead4.tar.gz nextcloud-server-b096fd9ed8811c92177864f76e91ae939d42ead4.zip |
log upgrades
-rw-r--r-- | lib/app.php | 2 | ||||
-rw-r--r-- | lib/base.php | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/lib/app.php b/lib/app.php index 554724d238b..7cb18a7ab00 100644 --- a/lib/app.php +++ b/lib/app.php @@ -495,7 +495,6 @@ class OC_App{ * check if any apps need updating and update those */ public static function updateApps(){ - // The rest comes here $versions = self::getAppVersions(); //ensure files app is installed for upgrades if(!isset($versions['files'])){ @@ -505,6 +504,7 @@ class OC_App{ $currentVersion=OC_App::getAppVersion($app); if ($currentVersion) { if (version_compare($currentVersion, $installedVersion, '>')) { + OC_Log::write($app,'starting app upgrade from '.$installedVersion.' to '.$currentVersion,OC_Log::DEBUG); OC_App::updateApp($app); OC_Appconfig::setValue($app,'installed_version',OC_App::getAppVersion($app)); } diff --git a/lib/base.php b/lib/base.php index 52a497e076d..fb2d978f449 100644 --- a/lib/base.php +++ b/lib/base.php @@ -223,6 +223,7 @@ class OC{ $installedVersion=OC_Config::getValue('version','0.0.0'); $currentVersion=implode('.',OC_Util::getVersion()); if (version_compare($currentVersion, $installedVersion, '>')) { + OC_Log::write('core','starting upgrade from '.$installedVersion.' to '.$currentVersion,OC_Log::DEBUG); $result=OC_DB::updateDbFromStructure(OC::$SERVERROOT.'/db_structure.xml'); if(!$result){ echo 'Error while upgrading the database'; |