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.
0.6.0-stable
Sean Dague 2008-09-13 02:29:04 +00:00
parent fcc716104b
commit 39902fef77
1 changed files with 5 additions and 1 deletions

View File

@ -48,7 +48,11 @@ namespace OpenSim.Data.SQLite.Tests
public void Init()
{
SuperInit();
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);