Log the installation parameters in case an investigation is needed

SVN:trunk[2371]
This commit is contained in:
Denis Flaven
2012-10-25 16:10:53 +00:00
parent 3c9082d978
commit fa9237f04b

View File

@@ -120,6 +120,16 @@ class ApplicationInstaller
'next-step' => 'copy',
'next-step-label' => 'Copying data model files',
);
// Log the parameters...
$oDoc = new DOMDocument('1.0', 'UTF-8');
$oDoc->preserveWhiteSpace = false;
$oDoc->formatOutput = true;
$this->oParams->ToXML($oDoc, null, 'installation');
$sXML = $oDoc->saveXML();
$sSafeXml = preg_replace("|<pwd>([^<]*)</pwd>|", "<pwd>**removed**</pwd>", $sXML);
SetupPage::log_info("======= Installation starts =======\nParameters:\n$sSafeXml\n");
break;
case 'copy':