From 557567dcf8cd950afbee7d8e60e1148068031612 Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Tue, 9 Dec 2008 16:16:16 +0000 Subject: [PATCH] * minor: remove some old logging messages --- OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs | 5 ++--- .../Modules/World/Permissions/PermissionsModule.cs | 4 ---- OpenSim/Region/Environment/Scenes/Scene.Inventory.cs | 6 ++++-- 3 files changed, 6 insertions(+), 9 deletions(-) diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs index 8aa70c9ccf..160d57e796 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs @@ -1791,7 +1791,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP bulkUpdate.AgentData.TransactionID = transactionId; bulkUpdate.FolderData = folderDataBlocks.ToArray(); - Console.WriteLine("SendBulkUpdateInventory :" + bulkUpdate); + //Console.WriteLine("SendBulkUpdateInventory :" + bulkUpdate); OutPacket(bulkUpdate, ThrottleOutPacketType.Asset); } } @@ -1834,7 +1834,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP items.RemoveAt(items.Count - 1); } - Console.WriteLine("SendBulkUpdateInventoryRecursive :" + bulkUpdate); + //Console.WriteLine("SendBulkUpdateInventoryRecursive :" + bulkUpdate); OutPacket(bulkUpdate, ThrottleOutPacketType.Asset); folderDataBlocks = new List(); @@ -2525,7 +2525,6 @@ namespace OpenSim.Region.ClientStack.LindenUDP return; ObjectAttachPacket attach = (ObjectAttachPacket)PacketPool.Instance.GetPacket(PacketType.ObjectAttach); - Console.WriteLine("Attach object!"); // TODO: don't create new blocks if recycling an old packet attach.AgentData.AgentID = AgentId; attach.AgentData.SessionID = m_sessionId; diff --git a/OpenSim/Region/Environment/Modules/World/Permissions/PermissionsModule.cs b/OpenSim/Region/Environment/Modules/World/Permissions/PermissionsModule.cs index d486da4d29..72974504a8 100644 --- a/OpenSim/Region/Environment/Modules/World/Permissions/PermissionsModule.cs +++ b/OpenSim/Region/Environment/Modules/World/Permissions/PermissionsModule.cs @@ -1355,8 +1355,6 @@ namespace OpenSim.Region.Environment.Modules.World.Permissions /// private bool CanCreateObjectInventory(int invType, UUID objectID, UUID userID) { - m_log.Debug("[PERMISSIONS]: CanCreateObjectInventory called"); - DebugPermissionInformation(MethodInfo.GetCurrentMethod().Name); if (m_bypassPermissions) return m_bypassPermissionsValue; @@ -1375,8 +1373,6 @@ namespace OpenSim.Region.Environment.Modules.World.Permissions /// private bool CanCreateUserInventory(int invType, UUID userID) { - m_log.Debug("[PERMISSIONS]: CanCreateAvatarInventory called"); - DebugPermissionInformation(MethodInfo.GetCurrentMethod().Name); if (m_bypassPermissions) return m_bypassPermissionsValue; diff --git a/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs b/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs index aa74e010c0..586fa43529 100644 --- a/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs +++ b/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs @@ -169,22 +169,24 @@ namespace OpenSim.Region.Environment.Scenes if (item != null) { - if ((InventoryType) item.InvType == InventoryType.Notecard) + if ((InventoryType)item.InvType == InventoryType.Notecard) { if (!Permissions.CanEditNotecard(itemID, UUID.Zero, remoteClient.AgentId)) { remoteClient.SendAgentAlertMessage("Insufficient permissions to edit notecard", false); return UUID.Zero; } + remoteClient.SendAgentAlertMessage("Notecard saved", false); } - else if ((InventoryType) item.InvType == InventoryType.LSL) + else if ((InventoryType)item.InvType == InventoryType.LSL) { if (!Permissions.CanEditScript(itemID, UUID.Zero, remoteClient.AgentId)) { remoteClient.SendAgentAlertMessage("Insufficient permissions to edit script", false); return UUID.Zero; } + remoteClient.SendAgentAlertMessage("Script saved", false); }