Browse Source

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

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@2746 a333f486-631f-4898-b8df-5754b55c2be0
dflaven 12 years ago
parent
commit
723cedd646
2 changed files with 2 additions and 5 deletions
  1. 1 1
      setup/backup.class.inc.php
  2. 1 4
      setup/runtimeenv.class.inc.php

+ 1 - 1
setup/backup.class.inc.php

@@ -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.");
 		}
 	}
 

+ 1 - 4
setup/runtimeenv.class.inc.php

@@ -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;	
 	}