diff options
Diffstat (limited to 'OpenSim/Region/CoreModules/Scripting/LoadImageURL')
-rw-r--r-- | OpenSim/Region/CoreModules/Scripting/LoadImageURL/LoadImageURLModule.cs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/OpenSim/Region/CoreModules/Scripting/LoadImageURL/LoadImageURLModule.cs b/OpenSim/Region/CoreModules/Scripting/LoadImageURL/LoadImageURLModule.cs index 96618e0..4abc55d 100644 --- a/OpenSim/Region/CoreModules/Scripting/LoadImageURL/LoadImageURLModule.cs +++ b/OpenSim/Region/CoreModules/Scripting/LoadImageURL/LoadImageURLModule.cs | |||
@@ -34,11 +34,15 @@ using OpenMetaverse; | |||
34 | using OpenMetaverse.Imaging; | 34 | using OpenMetaverse.Imaging; |
35 | using OpenSim.Region.Framework.Interfaces; | 35 | using OpenSim.Region.Framework.Interfaces; |
36 | using OpenSim.Region.Framework.Scenes; | 36 | using OpenSim.Region.Framework.Scenes; |
37 | using log4net; | ||
38 | using System.Reflection; | ||
37 | 39 | ||
38 | namespace OpenSim.Region.CoreModules.Scripting.LoadImageURL | 40 | namespace OpenSim.Region.CoreModules.Scripting.LoadImageURL |
39 | { | 41 | { |
40 | public class LoadImageURLModule : IRegionModule, IDynamicTextureRender | 42 | public class LoadImageURLModule : IRegionModule, IDynamicTextureRender |
41 | { | 43 | { |
44 | private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); | ||
45 | |||
42 | private string m_name = "LoadImageURL"; | 46 | private string m_name = "LoadImageURL"; |
43 | private Scene m_scene; | 47 | private Scene m_scene; |
44 | private IDynamicTextureManager m_textureManager; | 48 | private IDynamicTextureManager m_textureManager; |
@@ -203,8 +207,7 @@ namespace OpenSim.Region.CoreModules.Scripting.LoadImageURL | |||
203 | } | 207 | } |
204 | catch (Exception) | 208 | catch (Exception) |
205 | { | 209 | { |
206 | Console.WriteLine( | 210 | m_log.Error("[LOADIMAGEURLMODULE]: OpenJpeg Encode Failed. Empty byte data returned!"); |
207 | "[LOADIMAGEURLMODULE]: OpenJpeg Encode Failed. Empty byte data returned!"); | ||
208 | } | 211 | } |
209 | 212 | ||
210 | m_textureManager.ReturnData(state.RequestID, imageJ2000); | 213 | m_textureManager.ReturnData(state.RequestID, imageJ2000); |