If we fail to gather asset uuids for a particular asset, log the failing asset id and type

0.6.9-post-fixes
Justin Clark-Casey (justincc) 2010-11-27 00:46:02 +00:00
parent 21bb27193a
commit 7c2e34e5f6
1 changed files with 25 additions and 15 deletions

View File

@ -86,23 +86,33 @@ namespace OpenSim.Region.Framework.Scenes
/// <param name="assetUuids">The assets gathered</param> /// <param name="assetUuids">The assets gathered</param>
public void GatherAssetUuids(UUID assetUuid, AssetType assetType, IDictionary<UUID, int> assetUuids) public void GatherAssetUuids(UUID assetUuid, AssetType assetType, IDictionary<UUID, int> assetUuids)
{ {
assetUuids[assetUuid] = 1; try
{
if (AssetType.Bodypart == assetType || AssetType.Clothing == assetType) assetUuids[assetUuid] = 1;
{
GetWearableAssetUuids(assetUuid, assetUuids); if (AssetType.Bodypart == assetType || AssetType.Clothing == assetType)
{
GetWearableAssetUuids(assetUuid, assetUuids);
}
else if (AssetType.Gesture == assetType)
{
GetGestureAssetUuids(assetUuid, assetUuids);
}
else if (AssetType.LSLText == assetType)
{
GetScriptAssetUuids(assetUuid, assetUuids);
}
else if (AssetType.Object == assetType)
{
GetSceneObjectAssetUuids(assetUuid, assetUuids);
}
} }
else if (AssetType.Gesture == assetType) catch (Exception e)
{ {
GetGestureAssetUuids(assetUuid, assetUuids); m_log.ErrorFormat(
} "[UUID GATHERER]: Failed to gathering uuids for asset id {0}, type {1}",
else if (AssetType.LSLText == assetType) assetUuid, assetType);
{ throw e;
GetScriptAssetUuids(assetUuid, assetUuids);
}
else if (AssetType.Object == assetType)
{
GetSceneObjectAssetUuids(assetUuid, assetUuids);
} }
} }