diff options
author | Charles Krinke | 2009-02-22 20:52:55 +0000 |
---|---|---|
committer | Charles Krinke | 2009-02-22 20:52:55 +0000 |
commit | 8f55b9d735fbc975ce7a4b54e972c17ffbfb1f49 (patch) | |
tree | 96a24a49de82056060dd9b7bab0cb209d5f1a129 /OpenSim/Data/Tests/BasicRegionTest.cs | |
parent | Allow delivery of object messages gridwide (diff) | |
download | opensim-SC-8f55b9d735fbc975ce7a4b54e972c17ffbfb1f49.zip opensim-SC-8f55b9d735fbc975ce7a4b54e972c17ffbfb1f49.tar.gz opensim-SC-8f55b9d735fbc975ce7a4b54e972c17ffbfb1f49.tar.bz2 opensim-SC-8f55b9d735fbc975ce7a4b54e972c17ffbfb1f49.tar.xz |
Mantis#3218. Thank you kindly, TLaukkan (Tommil) for a patch that:
* Added log4net dependency to physxplugin in prebuild.xml.
* Added missing m_log fields to classes.
* Replaced Console.WriteLine with appropriate m_log.Xxxx
* Tested that nant test target runs succesfully.
* Tested that local opensim sandbox starts up without errors.
Diffstat (limited to 'OpenSim/Data/Tests/BasicRegionTest.cs')
-rw-r--r-- | OpenSim/Data/Tests/BasicRegionTest.cs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/OpenSim/Data/Tests/BasicRegionTest.cs b/OpenSim/Data/Tests/BasicRegionTest.cs index dfb2200..179692a 100644 --- a/OpenSim/Data/Tests/BasicRegionTest.cs +++ b/OpenSim/Data/Tests/BasicRegionTest.cs | |||
@@ -36,11 +36,14 @@ using OpenMetaverse; | |||
36 | using OpenSim.Framework; | 36 | using OpenSim.Framework; |
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 | namespace OpenSim.Data.Tests | 42 | namespace OpenSim.Data.Tests |
41 | { | 43 | { |
42 | public class BasicRegionTest | 44 | public class BasicRegionTest |
43 | { | 45 | { |
46 | private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); | ||
44 | public IRegionDataStore db; | 47 | public IRegionDataStore db; |
45 | public UUID zero = UUID.Zero; | 48 | public UUID zero = UUID.Zero; |
46 | public UUID region1; | 49 | public UUID region1; |
@@ -139,7 +142,7 @@ namespace OpenSim.Data.Tests | |||
139 | } | 142 | } |
140 | catch (Exception e) | 143 | catch (Exception e) |
141 | { | 144 | { |
142 | Console.WriteLine("Exception in storing object {0} {1}", sog.ToString(), e); | 145 | m_log.Error(e.ToString()); |
143 | Assert.Fail(); | 146 | Assert.Fail(); |
144 | } | 147 | } |
145 | 148 | ||
@@ -149,7 +152,7 @@ namespace OpenSim.Data.Tests | |||
149 | } | 152 | } |
150 | catch (Exception e) | 153 | catch (Exception e) |
151 | { | 154 | { |
152 | Console.WriteLine("Exception in storing object {0} {1}", sog2.ToString(), e); | 155 | m_log.Error(e.ToString()); |
153 | Assert.Fail(); | 156 | Assert.Fail(); |
154 | } | 157 | } |
155 | 158 | ||