diff options
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs | 62 |
1 files changed, 32 insertions, 30 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs b/OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs index d4e2102..d9ee94c 100644 --- a/OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs +++ b/OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs | |||
@@ -41,6 +41,8 @@ namespace OpenSim.Region.Environment.Scenes | |||
41 | { | 41 | { |
42 | public partial class SceneObjectPart : IScriptHost | 42 | public partial class SceneObjectPart : IScriptHost |
43 | { | 43 | { |
44 | private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); | ||
45 | |||
44 | private string m_inventoryFileName = String.Empty; | 46 | private string m_inventoryFileName = String.Empty; |
45 | 47 | ||
46 | /// <summary> | 48 | /// <summary> |
@@ -131,10 +133,10 @@ namespace OpenSim.Region.Environment.Scenes | |||
131 | /// <returns></returns> | 133 | /// <returns></returns> |
132 | public void StartScript(TaskInventoryItem item) | 134 | public void StartScript(TaskInventoryItem item) |
133 | { | 135 | { |
134 | // MainLog.Instance.Verbose( | 136 | // m_log.Info(String.Format( |
135 | // "PRIMINVENTORY", | 137 | // "[PRIMINVENTORY]: " + |
136 | // "Starting script {0}, {1} in prim {2}, {3}", | 138 | // "Starting script {0}, {1} in prim {2}, {3}", |
137 | // item.Name, item.ItemID, Name, UUID); | 139 | // item.Name, item.ItemID, Name, UUID)); |
138 | 140 | ||
139 | AssetBase rezAsset = m_parentGroup.Scene.AssetCache.GetAsset(item.AssetID, false); | 141 | AssetBase rezAsset = m_parentGroup.Scene.AssetCache.GetAsset(item.AssetID, false); |
140 | 142 | ||
@@ -145,10 +147,10 @@ namespace OpenSim.Region.Environment.Scenes | |||
145 | } | 147 | } |
146 | else | 148 | else |
147 | { | 149 | { |
148 | MainLog.Instance.Error( | 150 | m_log.Error(String.Format( |
149 | "PRIMINVENTORY", | 151 | "[PRIMINVENTORY]: " + |
150 | "Couldn't start script {0}, {1} since asset ID {2} could not be found", | 152 | "Couldn't start script {0}, {1} since asset ID {2} could not be found", |
151 | item.Name, item.ItemID, item.AssetID); | 153 | item.Name, item.ItemID, item.AssetID)); |
152 | } | 154 | } |
153 | } | 155 | } |
154 | 156 | ||
@@ -168,10 +170,10 @@ namespace OpenSim.Region.Environment.Scenes | |||
168 | } | 170 | } |
169 | else | 171 | else |
170 | { | 172 | { |
171 | MainLog.Instance.Error( | 173 | m_log.Error(String.Format( |
172 | "PRIMINVENTORY", | 174 | "[PRIMINVENTORY]: " + |
173 | "Couldn't start script with ID {0} since it couldn't be found for prim {1}, {2}", | 175 | "Couldn't start script with ID {0} since it couldn't be found for prim {1}, {2}", |
174 | itemId, Name, UUID); | 176 | itemId, Name, UUID)); |
175 | } | 177 | } |
176 | } | 178 | } |
177 | } | 179 | } |
@@ -188,10 +190,10 @@ namespace OpenSim.Region.Environment.Scenes | |||
188 | } | 190 | } |
189 | else | 191 | else |
190 | { | 192 | { |
191 | MainLog.Instance.Error( | 193 | m_log.Error(String.Format( |
192 | "PRIMINVENTORY", | 194 | "[PRIMINVENTORY]: " + |
193 | "Couldn't stop script with ID {0} since it couldn't be found for prim {1}, {2}", | 195 | "Couldn't stop script with ID {0} since it couldn't be found for prim {1}, {2}", |
194 | itemId, Name, UUID); | 196 | itemId, Name, UUID)); |
195 | } | 197 | } |
196 | } | 198 | } |
197 | 199 | ||
@@ -251,10 +253,10 @@ namespace OpenSim.Region.Environment.Scenes | |||
251 | } | 253 | } |
252 | else | 254 | else |
253 | { | 255 | { |
254 | MainLog.Instance.Error( | 256 | m_log.Error(String.Format( |
255 | "PRIMINVENTORY", | 257 | "[PRIMINVENTORY]: " + |
256 | "Tried to retrieve item ID {0} from prim {1}, {2} but the item does not exist in this inventory", | 258 | "Tried to retrieve item ID {0} from prim {1}, {2} but the item does not exist in this inventory", |
257 | itemID, Name, UUID); | 259 | itemID, Name, UUID)); |
258 | } | 260 | } |
259 | } | 261 | } |
260 | 262 | ||
@@ -283,10 +285,10 @@ namespace OpenSim.Region.Environment.Scenes | |||
283 | } | 285 | } |
284 | else | 286 | else |
285 | { | 287 | { |
286 | MainLog.Instance.Error( | 288 | m_log.Error(String.Format( |
287 | "PRIMINVENTORY", | 289 | "[PRIMINVENTORY]: " + |
288 | "Tried to retrieve item ID {0} from prim {1}, {2} but the item does not exist in this inventory", | 290 | "Tried to retrieve item ID {0} from prim {1}, {2} but the item does not exist in this inventory", |
289 | item.ItemID, Name, UUID); | 291 | item.ItemID, Name, UUID)); |
290 | } | 292 | } |
291 | } | 293 | } |
292 | 294 | ||
@@ -316,10 +318,10 @@ namespace OpenSim.Region.Environment.Scenes | |||
316 | } | 318 | } |
317 | else | 319 | else |
318 | { | 320 | { |
319 | MainLog.Instance.Error( | 321 | m_log.Error(String.Format( |
320 | "PRIMINVENTORY", | 322 | "[PRIMINVENTORY]: " + |
321 | "Tried to remove item ID {0} from prim {1}, {2} but the item does not exist in this inventory", | 323 | "Tried to remove item ID {0} from prim {1}, {2} but the item does not exist in this inventory", |
322 | itemID, Name, UUID); | 324 | itemID, Name, UUID)); |
323 | } | 325 | } |
324 | } | 326 | } |
325 | 327 | ||
@@ -384,8 +386,8 @@ namespace OpenSim.Region.Environment.Scenes | |||
384 | 386 | ||
385 | fileData = Helpers.StringToField(invString.BuildString); | 387 | fileData = Helpers.StringToField(invString.BuildString); |
386 | 388 | ||
387 | // MainLog.Instance.Verbose( | 389 | // m_log.Info(String.Format( |
388 | // "PRIMINVENTORY", "RequestInventoryFile fileData: {0}", Helpers.FieldToUTF8String(fileData)); | 390 | // "[PRIMINVENTORY]: RequestInventoryFile fileData: {0}", Helpers.FieldToUTF8String(fileData))); |
389 | 391 | ||
390 | if (fileData.Length > 2) | 392 | if (fileData.Length > 2) |
391 | { | 393 | { |