- validate our update.log file, if not writeable etc. create it in /tmp/

This commit is contained in:
Michael Kaufmann (d00p)
2010-05-17 08:52:37 +00:00
parent 711f54662c
commit 1876ed1459
2 changed files with 24 additions and 1 deletions

View File

@@ -19,8 +19,9 @@
$updatelog = FroxlorLogger::getInstanceOf(array('loginname' => 'updater'), $db, $settings);
$updatelog = validateUpdateLogFile(makeCorrectFile(dirname(__FILE__).'/update.log'));
$filelog = FileLogger::getInstanceOf(array('loginname' => 'updater'), $settings);
$filelog->setLogFile(makeCorrectFile(dirname(__FILE__).'/update.log'));
$filelog->setLogFile($updatelog);
$filelog->logAction(ADM_ACTION, LOG_WARNING, '-------------- START LOG --------------');
/*