- show START and END of update.log

- tiny beautification in updater
This commit is contained in:
Michael Kaufmann (d00p)
2010-05-17 08:42:32 +00:00
parent f331dee8a1
commit 711f54662c
2 changed files with 4 additions and 3 deletions

View File

@@ -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);
}