improve region deregistration log message

0.7.2-post-fixes
Justin Clark-Casey (justincc) 2011-11-19 00:10:29 +00:00
parent 4afb773399
commit 63aa448608
1 changed files with 4 additions and 1 deletions

View File

@ -239,11 +239,14 @@ namespace OpenSim.Services.GridService
public bool DeregisterRegion(UUID regionID) public bool DeregisterRegion(UUID regionID)
{ {
m_log.DebugFormat("[GRID SERVICE]: Region {0} deregistered", regionID);
RegionData region = m_Database.Get(regionID, UUID.Zero); RegionData region = m_Database.Get(regionID, UUID.Zero);
if (region == null) if (region == null)
return false; return false;
m_log.DebugFormat(
"[GRID SERVICE]: Degistering region {0} ({1}) at {2}-{3}",
region.RegionName, region.RegionID, region.posX, region.posY);
int flags = Convert.ToInt32(region.Data["flags"]); int flags = Convert.ToInt32(region.Data["flags"]);
if (!m_DeleteOnUnregister || (flags & (int)OpenSim.Data.RegionFlags.Persistent) != 0) if (!m_DeleteOnUnregister || (flags & (int)OpenSim.Data.RegionFlags.Persistent) != 0)