mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
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:
@@ -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.");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user