From 711f54662c239e05143823c6b2431eb9c5dc81f5 Mon Sep 17 00:00:00 2001 From: "Michael Kaufmann (d00p)" Date: Mon, 17 May 2010 08:42:32 +0000 Subject: [PATCH] - show START and END of update.log - tiny beautification in updater --- install/updates/froxlor/0.9/update_0.9.inc.php | 3 ++- install/updatesql.php | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/install/updates/froxlor/0.9/update_0.9.inc.php b/install/updates/froxlor/0.9/update_0.9.inc.php index 4be1b2a0..dec0f5c9 100644 --- a/install/updates/froxlor/0.9/update_0.9.inc.php +++ b/install/updates/froxlor/0.9/update_0.9.inc.php @@ -280,7 +280,8 @@ if(isFroxlorVersion('0.9-r3')) if(isFroxlorVersion('0.9-r4')) { - showUpdateStep("Updating from 0.9-r4 to 0.9 final", false); + showUpdateStep("Updating from 0.9-r4 to 0.9 final"); + lastStepStatus(0); updateToVersion('0.9'); } diff --git a/install/updatesql.php b/install/updatesql.php index dfb8b2f9..7e81d846 100644 --- a/install/updatesql.php +++ b/install/updatesql.php @@ -21,6 +21,7 @@ $updatelog = FroxlorLogger::getInstanceOf(array('loginname' => 'updater'), $db, $filelog = FileLogger::getInstanceOf(array('loginname' => 'updater'), $settings); $filelog->setLogFile(makeCorrectFile(dirname(__FILE__).'/update.log')); +$filelog->logAction(ADM_ACTION, LOG_WARNING, '-------------- START LOG --------------'); /* * since froxlor, we have to check if there's still someone @@ -92,9 +93,8 @@ if(!isFroxlor()) if(isFroxlor()) { - $filelog->logAction(ADM_ACTION, LOG_NOTICE, '-------------- START LOG --------------'); include_once (makeCorrectFile(dirname(__FILE__).'/updates/froxlor/0.9/update_0.9.inc.php')); - $filelog->logAction(ADM_ACTION, LOG_NOTICE, '--------------- END LOG ---------------'); + $filelog->logAction(ADM_ACTION, LOG_WARNING, '--------------- END LOG ---------------'); unset($filelog); }