diff -r 420f6808bf21 -r f9e827349359 photosgallery/collectionframework/datasource/plugins/glxdatasourcemde2.5/src/glxdatasourcemds.cpp --- a/photosgallery/collectionframework/datasource/plugins/glxdatasourcemde2.5/src/glxdatasourcemds.cpp Wed Jun 09 09:41:51 2010 +0300 +++ b/photosgallery/collectionframework/datasource/plugins/glxdatasourcemde2.5/src/glxdatasourcemds.cpp Mon Jun 21 15:40:32 2010 +0300 @@ -541,9 +541,13 @@ { for ( TInt i = 0; i < aObjectIdArray.Count(); i++ ) { - iAddedItems.Append(aObjectIdArray[i]); + TInt ret = iAddedItems.Append(aObjectIdArray[i]); + if (ret != KErrNone) + { + GLX_DEBUG2("ENotifyAdd-iAddedItems.Append() failed i(%d)", i); + } } - GLX_LOG_INFO1("ENotifyAdd - iAddedItems.Count()=%d", iAddedItems.Count()); + GLX_DEBUG2("ENotifyAdd - iAddedItems.Count()=%d", iAddedItems.Count()); } if (ENotifyModify == aType) @@ -554,25 +558,25 @@ { if (!iHarvestingOngoing) { - GLX_LOG_INFO("ENotifyModify - Harvesting Completed - " - "Reset iAddedItems array"); + GLX_DEBUG1("ENotifyModify - Harvesting Completed - " + "Reset iAddedItems array"); iAddedItems.Reset(); break; } - GLX_LOG_INFO("ENotifyModify - Id found in iAddedItems array, DO NOT PROCESS"); + GLX_DEBUG1("ENotifyModify - Id found in iAddedItems array, DO NOT PROCESS"); return; } } } - GLX_LOG_INFO("ProcessUpdateArray"); + GLX_DEBUG1("HandleObjectNotification - ProcessUpdateArray"); ProcessUpdateArray(aObjectIdArray, MPXChangeEventType(aType), ETrue); #ifndef USE_S60_TNM if(MPXChangeEventType(aType) == EMPXItemDeleted ) { TInt count = aObjectIdArray.Count(); iDeletedCount += count; - GLX_LOG_INFO2("EMPXItemDeleted - aObjectIdArray.Count()=%d, iDeletedCount=%d", + GLX_DEBUG3("EMPXItemDeleted - aObjectIdArray.Count()=%d, iDeletedCount=%d", count, iDeletedCount); if(iDeletedCount > KGlxThumbnailCleanupAfterDeletions) { @@ -586,7 +590,7 @@ if(MPXChangeEventType(aType) == EMPXItemModified ) { - GLX_LOG_INFO("EMPXItemModified"); + GLX_DEBUG1("HandleObjectNotification - EMPXItemModified"); TRAP_IGNORE(ThumbnailCreator().CleanupThumbnailsL(iThumbnailDatabase)); } #endif @@ -635,7 +639,7 @@ TRACER("CGlxDataSourceMde::HandleRelationPresentNotification()"); if (aPresent) { - ProcessUpdateArray(aRelationIdArray, EMPXItemInserted, EFalse); + ProcessUpdateArray(aRelationIdArray, EMPXItemInserted, EFalse); } else {