* minor: Make some 'startup config failed to load' log messages more consistent
parent
c932aae4c3
commit
9770cf778e
|
@ -85,9 +85,9 @@ namespace OpenSim.Region.Environment.Modules.World.WorldMap
|
|||
drawPrimVolume = startupConfig.GetBoolean("DrawPrimOnMapTile", drawPrimVolume);
|
||||
textureTerrain = startupConfig.GetBoolean("TextureOnMapTile", textureTerrain);
|
||||
}
|
||||
catch (Exception)
|
||||
catch
|
||||
{
|
||||
m_log.Warn("Failed to load StartupConfig");
|
||||
m_log.Warn("[MAPTILE]: Failed to load StartupConfig");
|
||||
}
|
||||
|
||||
if (textureTerrain)
|
||||
|
|
|
@ -334,9 +334,9 @@ namespace OpenSim.Region.Environment.Scenes
|
|||
|
||||
m_defaultScriptEngine = startupConfig.GetString("DefaultScriptEngine", "DotNetEngine");
|
||||
}
|
||||
catch (Exception)
|
||||
catch
|
||||
{
|
||||
m_log.Warn("Failed to load StartupConfig");
|
||||
m_log.Warn("[SCENE]: Failed to load StartupConfig");
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1307,6 +1307,7 @@ namespace OpenSim.Region.Environment.Scenes
|
|||
//tc = System.Environment.TickCount - tc;
|
||||
//m_log.Info("[MAPTILE]: Completed One row in " + tc + " ms");
|
||||
}
|
||||
|
||||
m_log.Info("[MAPTILE]: Generating Maptile Step 1: Done in " + (System.Environment.TickCount - tc) + " ms");
|
||||
|
||||
bool drawPrimVolume = true;
|
||||
|
@ -1316,9 +1317,9 @@ namespace OpenSim.Region.Environment.Scenes
|
|||
IConfig startupConfig = m_config.Configs["Startup"];
|
||||
drawPrimVolume = startupConfig.GetBoolean("DrawPrimOnMapTile", true);
|
||||
}
|
||||
catch (Exception)
|
||||
catch
|
||||
{
|
||||
m_log.Warn("Failed to load StartupConfig");
|
||||
m_log.Warn("[MAPTILE]: Failed to load StartupConfig");
|
||||
}
|
||||
|
||||
if (drawPrimVolume)
|
||||
|
|
|
@ -40,6 +40,19 @@ namespace OpenSim.Region.Environment.Scenes.Tests
|
|||
[TestFixture]
|
||||
public class SceneTests
|
||||
{
|
||||
[SetUp]
|
||||
public void Init()
|
||||
{
|
||||
try
|
||||
{
|
||||
log4net.Config.XmlConfigurator.Configure();
|
||||
}
|
||||
catch
|
||||
{
|
||||
// I don't care, just leave log4net off
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Test adding an object to a scene. Doesn't yet do what it says on the tin.
|
||||
/// </summary>
|
||||
|
@ -56,7 +69,11 @@ namespace OpenSim.Region.Environment.Scenes.Tests
|
|||
StorageManager sm = new OpenSim.Region.Environment.StorageManager("OpenSim.Data.Null.dll", "", "");
|
||||
IConfigSource configSource = new IniConfigSource();
|
||||
|
||||
new Scene(regInfo, acm, cm, scs, null, sm, null, null, false, false, false, configSource, null);
|
||||
Scene scene
|
||||
= new Scene(regInfo, acm, cm, scs, null, sm, null, null, false, false, false, configSource, null);
|
||||
|
||||
SceneObjectGroup sceneObject = new SceneObjectGroup();
|
||||
scene.AddNewSceneObject(sceneObject, false);
|
||||
}
|
||||
}
|
||||
}
|
|
@ -124,7 +124,7 @@ namespace OpenSim.Region.Physics.Manager
|
|||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
m_log.Error("Failed to load plugin from " + FileName, ex);
|
||||
m_log.Error("[PHYSICS]: Failed to load plugin from " + FileName, ex);
|
||||
}
|
||||
|
||||
if (pluginAssembly != null)
|
||||
|
|
Loading…
Reference in New Issue