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
parent
fcc716104b
commit
39902fef77
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue