From 39902fef776a42c1cb8086768f9751ff68288758 Mon Sep 17 00:00:00 2001 From: Sean Dague Date: Sat, 13 Sep 2008 02:29:04 +0000 Subject: wrap log4net configure in try block so that it will run if you don't have a .config (which no one does). Dropping in the .config lets you see that debug messages, which is handy while writing tests and figuring out why things don't behave like you would guess. --- OpenSim/Data/SQLite/Tests/SQLiteInventoryTest.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'OpenSim') diff --git a/OpenSim/Data/SQLite/Tests/SQLiteInventoryTest.cs b/OpenSim/Data/SQLite/Tests/SQLiteInventoryTest.cs index 181a6a4..6e5c68d 100644 --- a/OpenSim/Data/SQLite/Tests/SQLiteInventoryTest.cs +++ b/OpenSim/Data/SQLite/Tests/SQLiteInventoryTest.cs @@ -48,7 +48,11 @@ namespace OpenSim.Data.SQLite.Tests public void Init() { SuperInit(); - log4net.Config.XmlConfigurator.Configure(); + try { + log4net.Config.XmlConfigurator.Configure(); + } catch (Exception e) { + // I don't care, just leave log4net off + } connect = "URI=file:" + file + ",version=3"; db = new SQLiteInventoryStore(); db.Initialise(connect); -- cgit v1.1