From e52c217e44527e966afd1cc030796e42858378bf Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Sat, 22 Dec 2007 14:34:05 +0000 Subject: Put in some race revealing warning messages triggered when a user rezzes a script to prim inventory --- .../Region/Environment/Scenes/Scene.Inventory.cs | 30 ++++++++++++++++++++++ 1 file changed, 30 insertions(+) (limited to 'OpenSim/Region/Environment/Scenes/Scene.Inventory.cs') diff --git a/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs b/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs index ceaadc2..86cb38d 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,8 +488,32 @@ 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); + } } } } -- cgit v1.1