diff options
Diffstat (limited to 'OpenSim/Region/CoreModules/Scripting/VectorRender')
-rw-r--r-- | OpenSim/Region/CoreModules/Scripting/VectorRender/VectorRenderModule.cs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/OpenSim/Region/CoreModules/Scripting/VectorRender/VectorRenderModule.cs b/OpenSim/Region/CoreModules/Scripting/VectorRender/VectorRenderModule.cs index e7fabbe..4fb500e 100644 --- a/OpenSim/Region/CoreModules/Scripting/VectorRender/VectorRenderModule.cs +++ b/OpenSim/Region/CoreModules/Scripting/VectorRender/VectorRenderModule.cs | |||
@@ -36,6 +36,8 @@ using OpenMetaverse; | |||
36 | using OpenMetaverse.Imaging; | 36 | using OpenMetaverse.Imaging; |
37 | using OpenSim.Region.Framework.Interfaces; | 37 | using OpenSim.Region.Framework.Interfaces; |
38 | using OpenSim.Region.Framework.Scenes; | 38 | using OpenSim.Region.Framework.Scenes; |
39 | using log4net; | ||
40 | using System.Reflection; | ||
39 | 41 | ||
40 | //using Cairo; | 42 | //using Cairo; |
41 | 43 | ||
@@ -43,6 +45,8 @@ namespace OpenSim.Region.CoreModules.Scripting.VectorRender | |||
43 | { | 45 | { |
44 | public class VectorRenderModule : IRegionModule, IDynamicTextureRender | 46 | public class VectorRenderModule : IRegionModule, IDynamicTextureRender |
45 | { | 47 | { |
48 | private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); | ||
49 | |||
46 | private string m_name = "VectorRenderModule"; | 50 | private string m_name = "VectorRenderModule"; |
47 | private Scene m_scene; | 51 | private Scene m_scene; |
48 | private IDynamicTextureManager m_textureManager; | 52 | private IDynamicTextureManager m_textureManager; |
@@ -317,7 +321,7 @@ namespace OpenSim.Region.CoreModules.Scripting.VectorRender | |||
317 | } | 321 | } |
318 | catch (Exception) | 322 | catch (Exception) |
319 | { | 323 | { |
320 | Console.WriteLine( | 324 | m_log.Error( |
321 | "[VECTORRENDERMODULE]: OpenJpeg Encode Failed. Empty byte data returned!"); | 325 | "[VECTORRENDERMODULE]: OpenJpeg Encode Failed. Empty byte data returned!"); |
322 | } | 326 | } |
323 | m_textureManager.ReturnData(id, imageJ2000); | 327 | m_textureManager.ReturnData(id, imageJ2000); |
@@ -333,7 +337,7 @@ namespace OpenSim.Region.CoreModules.Scripting.VectorRender | |||
333 | catch (Exception) | 337 | catch (Exception) |
334 | { | 338 | { |
335 | //Ckrinke: Add a WriteLine to remove the warning about 'e' defined but not used | 339 | //Ckrinke: Add a WriteLine to remove the warning about 'e' defined but not used |
336 | // Console.WriteLine("Problem with Draw. Please verify parameters." + e.ToString()); | 340 | // m_log.Debug("Problem with Draw. Please verify parameters." + e.ToString()); |
337 | parsed = -1; | 341 | parsed = -1; |
338 | } | 342 | } |
339 | 343 | ||