From e52c217e44527e966afd1cc030796e42858378bf Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Sat, 22 Dec 2007 14:34:05 +0000 Subject: [PATCH] Put in some race revealing warning messages triggered when a user rezzes a script to prim inventory --- .../Environment/Scenes/Scene.Inventory.cs | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs b/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs index ceaadc2826..86cb38dad6 100644 --- a/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs +++ b/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs @@ -440,6 +440,12 @@ namespace OpenSim.Region.Environment.Scenes } } + /// + /// Rez a script into a prim's inventory + /// + /// + /// + /// public void RezScript(IClientAPI remoteClient, LLUUID itemID, uint localID) { CachedUserInfo userInfo = CommsManager.UserProfileCacheService.GetUserDetails(remoteClient.AgentId); @@ -482,7 +488,31 @@ namespace OpenSim.Region.Environment.Scenes group.AddInventoryItem(remoteClient, localID, item, copyID); group.GetProperites(remoteClient); } + else + { + MainLog.Instance.Warn( + "PRIMINVENTORY", + "Could not rez item {0} into prim {1}" + + " because the prim could not be found in the region!", + item.inventoryName, + localID); + } } + else + { + MainLog.Instance.Warn( + "PRIMINVENTORY", + "Could not rez item {0} into prim {1}" + + " because the item asset {2} could not be found!", + item.inventoryName, + localID, + item.assetID); + } + } + else + { + MainLog.Instance.Warn( + "PRIMINVENTORY", "Could not find script inventory item {0} to rez!", itemID); } } }