aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Tests/Common/TestHelpers.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Tests/Common/TestHelpers.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/OpenSim/Tests/Common/TestHelpers.cs b/OpenSim/Tests/Common/TestHelpers.cs
index d38d692..30121fe 100644
--- a/OpenSim/Tests/Common/TestHelpers.cs
+++ b/OpenSim/Tests/Common/TestHelpers.cs
@@ -58,7 +58,7 @@ namespace OpenSim.Tests.Common
58 </root> 58 </root>
59</log4net>")); 59</log4net>"));
60 60
61 private static Stream DisableLoggingConfigStream 61 private static MemoryStream DisableLoggingConfigStream
62 = new MemoryStream( 62 = new MemoryStream(
63 Encoding.UTF8.GetBytes( 63 Encoding.UTF8.GetBytes(
64// "<?xml version=\"1.0\" encoding=\"utf-8\" ?><configuration><log4net><root><level value=\"OFF\"/><appender-ref ref=\"A1\"/></root></log4net></configuration>")); 64// "<?xml version=\"1.0\" encoding=\"utf-8\" ?><configuration><log4net><root><level value=\"OFF\"/><appender-ref ref=\"A1\"/></root></log4net></configuration>"));
@@ -109,6 +109,7 @@ namespace OpenSim.Tests.Common
109 public static void DisableLogging() 109 public static void DisableLogging()
110 { 110 {
111 log4net.Config.XmlConfigurator.Configure(DisableLoggingConfigStream); 111 log4net.Config.XmlConfigurator.Configure(DisableLoggingConfigStream);
112 DisableLoggingConfigStream.Position = 0;
112 } 113 }
113 114
114 /// <summary> 115 /// <summary>