Cleanup of the log output. No need for such verbosity now that we are approaching the release.

SVN:trunk[2746]
This commit is contained in:
Denis Flaven
2013-05-16 15:41:52 +00:00
parent 2708b0de0e
commit b971faecda
2 changed files with 2 additions and 5 deletions

View File

@@ -184,7 +184,7 @@ class DBBackup
if ($iRetCode != 0)
{
SetupPage::log("Error - retcode=".$iRetCode."\n");
throw new BackupException("Failed to execute mysqldump. Return code: $iRetCode");
throw new BackupException("Failed to execute mysqldump. Return code: $iRetCode. Check the log file '".realpath(APPROOT.'/log/setup.log')."' for more information.");
}
}

View File

@@ -503,7 +503,6 @@ class RunTimeEnvironment
require_once(APPROOT.'/core/cmdbsource.class.inc.php');
CMDBSource::Init($oConfig->GetDBHost(), $oConfig->GetDBUser(), $oConfig->GetDBPwd(), $oConfig->GetDBName());
$sSQLQuery = "SELECT * FROM ".$oConfig->GetDBSubname()."priv_module_install";
$this->log_info('Query:'.$sSQLQuery);
$aSelectInstall = CMDBSource::QueryToArray($sSQLQuery);
}
catch (MySQLException $e)
@@ -525,11 +524,9 @@ class RunTimeEnvironment
// as being installed
$sModuleVersion = '0.0.0';
}
$this->log_info('Found module: '.print_r($aInstall, true));
if ($aInstall['parent_id'] == 0)
{
$this->log_info($aInstall['name'].' is a root module');
if ($aInstall['name'] == DATAMODEL_MODULE)
{
$aResult['datamodel_version'] = $sModuleVersion;
@@ -552,7 +549,7 @@ class RunTimeEnvironment
// so assume that the datamodel version is equal to the application version
$aResult['datamodel_version'] = $aResult['product_version'];
}
$this->log_info(">>> GetApplicationVersion returns: product_name: ".$aResult['product_name'].', product_version: '.$aResult['product_version']);
$this->log_info("GetApplicationVersion returns: product_name: ".$aResult['product_name'].', product_version: '.$aResult['product_version']);
return $aResult;
}