Data Exchange - Format and save traces (config option: synchro_trace)

SVN:trunk[1102]
This commit is contained in:
Romain Quetiez
2011-03-01 16:21:04 +00:00
parent 67f8ddf5a8
commit bddb8b4c92
6 changed files with 143 additions and 53 deletions

View File

@@ -122,19 +122,18 @@ foreach(explode(',', $sDataSourcesList) as $iSDS)
}
else
{
$aResults = array();
if ($bSimulate)
{
CMDBSource::Query('START TRANSACTION');
}
try
{
$oStatLog = $oSynchroDataSource->Synchronize($aResults, null);
$oStatLog = $oSynchroDataSource->Synchronize(null);
if ($bSimulate)
{
CMDBSource::Query('ROLLBACK');
}
foreach ($aResults as $sMessage)
foreach ($oStatLog->GetTraces() as $sMessage)
{
$oP->p('#'.$sMessage);
}