Store scene identifier passed in to OdeScene for later debug messages

0.7.2-post-fixes
Justin Clark-Casey (justincc) 2011-10-18 21:11:13 +01:00
parent 1a008b237b
commit a556930456
2 changed files with 10 additions and 2 deletions

View File

@ -58,6 +58,11 @@ namespace OpenSim.Region.Physics.Manager
{
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
/// <summary>
/// Name of this scene. Useful in debug messages to distinguish one OdeScene instance from another.
/// </summary>
public string Name { get; protected set; }
// The only thing that should register for this event is the SceneGraph
// Anything else could cause problems.

View File

@ -310,10 +310,13 @@ namespace OpenSim.Region.Physics.OdePlugin
/// Sets many properties that ODE requires to be stable
/// These settings need to be tweaked 'exactly' right or weird stuff happens.
/// </summary>
public OdeScene(string sceneIdentifier)
/// <param value="name">Name of the scene. Useful in debug messages.</param>
public OdeScene(string name)
{
m_log
= LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType.ToString() + "." + sceneIdentifier);
= LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType.ToString() + "." + name);
Name = name;
nearCallback = near;
triCallback = TriCallback;