Improve logging on the prim inventory script asset request path for future use.

This adds name and description of the request handler to http request logging when DebugLevel >= 1
This commit is contained in:
Justin Clark-Casey (justincc)
2012-05-09 23:12:30 +01:00
parent e813f41478
commit 6987aef38d
4 changed files with 15 additions and 8 deletions

View File

@@ -300,6 +300,10 @@ namespace OpenSim.Region.Framework.Scenes
AssetBase asset = CreateAsset(item.Name, item.Description, (sbyte)AssetType.LSLText, data, remoteClient.AgentId);
AssetService.Store(asset);
// m_log.DebugFormat(
// "[PRIM INVENTORY]: Stored asset {0} when updating item {1} in prim {2} for {3}",
// asset.ID, item.Name, part.Name, remoteClient.Name);
if (isScriptRunning)
{
part.Inventory.RemoveScriptInstance(item.ItemID, false);