- correcting constructor-call of FileLogger

This commit is contained in:
Michael Kaufmann (d00p)
2010-05-17 06:15:03 +00:00
parent 089b03de38
commit 225be93610
2 changed files with 3 additions and 3 deletions

View File

@@ -89,8 +89,8 @@ if(!isFroxlor())
if(isFroxlor()) if(isFroxlor())
{ {
$filelog = FileLogger::getInstanceOf(array('loginname' => 'updater'), $db, $settings); $filelog = FileLogger::getInstanceOf(array('loginname' => 'updater'), $settings);
$filelog->setLogFile(makeCorrectFile(dirname(__FILE__).'update.log')); $filelog->setLogFile(makeCorrectFile(dirname(__FILE__).'/update.log'));
$filelog->logAction(ADM_ACTION, LOG_NOTICE, '-------------- START LOG --------------'); $filelog->logAction(ADM_ACTION, LOG_NOTICE, '-------------- START LOG --------------');
include_once (makeCorrectFile(dirname(__FILE__).'/updates/froxlor/0.9/update_0.9.inc.php')); 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_NOTICE, '--------------- END LOG ---------------');

View File

@@ -172,6 +172,6 @@ function lastStepStatus($status = -1, $message = '')
} }
elseif($status == 0 || $status == 1) elseif($status == 0 || $status == 1)
{ {
$filelog->logAction(ADM_ACTION, LOG_NOTICE, 'Success'); $filelog->logAction(ADM_ACTION, LOG_WARNING, 'Success');
} }
} }