From fa9237f04bc73d4081876f1e0586b241b9113eb9 Mon Sep 17 00:00:00 2001 From: Denis Flaven Date: Thu, 25 Oct 2012 16:10:53 +0000 Subject: [PATCH] Log the installation parameters in case an investigation is needed SVN:trunk[2371] --- setup/applicationinstaller.class.inc.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/setup/applicationinstaller.class.inc.php b/setup/applicationinstaller.class.inc.php index 418ec49be..1006a93e1 100644 --- a/setup/applicationinstaller.class.inc.php +++ b/setup/applicationinstaller.class.inc.php @@ -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("|([^<]*)|", "**removed**", $sXML); + SetupPage::log_info("======= Installation starts =======\nParameters:\n$sSafeXml\n"); + break; case 'copy':