aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework
diff options
context:
space:
mode:
authorJustin Clarke Casey2008-04-02 15:16:32 +0000
committerJustin Clarke Casey2008-04-02 15:16:32 +0000
commit1038c244cf950f291252b95dabcda5b550a0db2c (patch)
tree5d294ae3aca5af985f40af1ebce68fd1103f8cf0 /OpenSim/Framework
parentrefactor, make the file name the class name (diff)
downloadopensim-SC_OLD-1038c244cf950f291252b95dabcda5b550a0db2c.zip
opensim-SC_OLD-1038c244cf950f291252b95dabcda5b550a0db2c.tar.gz
opensim-SC_OLD-1038c244cf950f291252b95dabcda5b550a0db2c.tar.bz2
opensim-SC_OLD-1038c244cf950f291252b95dabcda5b550a0db2c.tar.xz
* Add some temporary task inventory item inflation debug messages to investigate mantis 854
Diffstat (limited to 'OpenSim/Framework')
-rw-r--r--OpenSim/Framework/TaskInventoryItem.cs10
1 files changed, 10 insertions, 0 deletions
diff --git a/OpenSim/Framework/TaskInventoryItem.cs b/OpenSim/Framework/TaskInventoryItem.cs
index de4f181..275d263 100644
--- a/OpenSim/Framework/TaskInventoryItem.cs
+++ b/OpenSim/Framework/TaskInventoryItem.cs
@@ -43,6 +43,8 @@ namespace OpenSim.Framework
43 public class TaskInventoryDictionary : Dictionary<LLUUID, TaskInventoryItem>, 43 public class TaskInventoryDictionary : Dictionary<LLUUID, TaskInventoryItem>,
44 ICloneable, IXmlSerializable 44 ICloneable, IXmlSerializable
45 { 45 {
46 private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
47
46 private static XmlSerializer tiiSerializer = new XmlSerializer(typeof(TaskInventoryItem)); 48 private static XmlSerializer tiiSerializer = new XmlSerializer(typeof(TaskInventoryItem));
47 49
48 // The alternative of simply serializing the list doesn't appear to work on mono, since 50 // The alternative of simply serializing the list doesn't appear to work on mono, since
@@ -65,13 +67,21 @@ namespace OpenSim.Framework
65 // see IXmlSerializable 67 // see IXmlSerializable
66 public void ReadXml(XmlReader reader) 68 public void ReadXml(XmlReader reader)
67 { 69 {
70 m_log.DebugFormat(
71 "[TASK INVENTORY]: Initial task inventory deserialization CanDeserialize() call was {0}",
72 tiiSerializer.CanDeserialize(reader));
73
68 reader.Read(); 74 reader.Read();
69 while (tiiSerializer.CanDeserialize(reader)) 75 while (tiiSerializer.CanDeserialize(reader))
70 { 76 {
71 TaskInventoryItem item = (TaskInventoryItem)tiiSerializer.Deserialize(reader); 77 TaskInventoryItem item = (TaskInventoryItem)tiiSerializer.Deserialize(reader);
72 Add(item.ItemID, item); 78 Add(item.ItemID, item);
79
80 m_log.DebugFormat("[TASK INVENTORY]: Instanted prim item {0}, {1} from xml", item.Name, item.ItemID);
73 } 81 }
74 82
83 m_log.DebugFormat("[TASK INVENTORY]: Instantiated {0} prim items in total from xml", Count);
84
75// reader.Read(); 85// reader.Read();
76// while (reader.Name.Equals("TaskInventoryItem")) 86// while (reader.Name.Equals("TaskInventoryItem"))
77// { 87// {