mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 17:55:48 +08:00
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.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user