From 6dd2841ed8f52f757b9fc8d07b0a07bac3bd9293 Mon Sep 17 00:00:00 2001 From: Sean Dague Date: Fri, 19 Sep 2008 20:53:42 +0000 Subject: add in bits to attempt to enable log4net on these tests to help when debugging --- OpenSim/Data/Tests/BasicAssetTest.cs | 9 +++++++++ OpenSim/Data/Tests/BasicInventoryTest.cs | 9 +++++++++ OpenSim/Data/Tests/BasicUserTest.cs | 9 +++++++++ 3 files changed, 27 insertions(+) (limited to 'OpenSim') diff --git a/OpenSim/Data/Tests/BasicAssetTest.cs b/OpenSim/Data/Tests/BasicAssetTest.cs index 47c25a1..e40bccb 100644 --- a/OpenSim/Data/Tests/BasicAssetTest.cs +++ b/OpenSim/Data/Tests/BasicAssetTest.cs @@ -45,6 +45,15 @@ namespace OpenSim.Data.Tests public void SuperInit() { + try + { + log4net.Config.XmlConfigurator.Configure(); + } + catch (Exception) + { + // I don't care, just leave log4net off + } + uuid1 = UUID.Random(); uuid2 = UUID.Random(); uuid3 = UUID.Random(); diff --git a/OpenSim/Data/Tests/BasicInventoryTest.cs b/OpenSim/Data/Tests/BasicInventoryTest.cs index b871c4e..ea8e4e8 100644 --- a/OpenSim/Data/Tests/BasicInventoryTest.cs +++ b/OpenSim/Data/Tests/BasicInventoryTest.cs @@ -65,6 +65,15 @@ namespace OpenSim.Data.Tests public void SuperInit() { + try + { + log4net.Config.XmlConfigurator.Configure(); + } + catch (Exception) + { + // I don't care, just leave log4net off + } + folder1 = UUID.Random(); folder2 = UUID.Random(); folder3 = UUID.Random(); diff --git a/OpenSim/Data/Tests/BasicUserTest.cs b/OpenSim/Data/Tests/BasicUserTest.cs index 9e79193..9587d86 100644 --- a/OpenSim/Data/Tests/BasicUserTest.cs +++ b/OpenSim/Data/Tests/BasicUserTest.cs @@ -45,6 +45,15 @@ namespace OpenSim.Data.Tests public void SuperInit() { + try + { + log4net.Config.XmlConfigurator.Configure(); + } + catch (Exception) + { + // I don't care, just leave log4net off + } + uuid1 = UUID.Random(); uuid2 = UUID.Random(); uuid3 = UUID.Random(); -- cgit v1.1