diff options
author | Robert Adams | 2014-01-03 07:41:06 -0800 |
---|---|---|
committer | Robert Adams | 2014-01-04 19:01:04 -0800 |
commit | 7e32313a491defe8f5fb62ce0036c1692d4b4af9 (patch) | |
tree | ba689f4a69419f6d23ecb26846f2b43b982669d8 /OpenSim/Services/Interfaces | |
parent | varregion: send region size in LLLoginResponse. (diff) | |
download | opensim-SC_OLD-7e32313a491defe8f5fb62ce0036c1692d4b4af9.zip opensim-SC_OLD-7e32313a491defe8f5fb62ce0036c1692d4b4af9.tar.gz opensim-SC_OLD-7e32313a491defe8f5fb62ce0036c1692d4b4af9.tar.bz2 opensim-SC_OLD-7e32313a491defe8f5fb62ce0036c1692d4b4af9.tar.xz |
varregion: Add region size to teleport event messages (EnableSimulator,
CorssRegion, TeleportFinishEvent).
Have Simian grid service return the region size.
Many teleport related debug log messages. Can be removed when teleport
works (like that's ever going to happen).
Conflicts:
OpenSim/Framework/RegionInfo.cs
Diffstat (limited to 'OpenSim/Services/Interfaces')
-rw-r--r-- | OpenSim/Services/Interfaces/IGridService.cs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/OpenSim/Services/Interfaces/IGridService.cs b/OpenSim/Services/Interfaces/IGridService.cs index 59d6167..9459ecd 100644 --- a/OpenSim/Services/Interfaces/IGridService.cs +++ b/OpenSim/Services/Interfaces/IGridService.cs | |||
@@ -29,9 +29,13 @@ using System; | |||
29 | using System.Collections.Generic; | 29 | using System.Collections.Generic; |
30 | using System.Net; | 30 | using System.Net; |
31 | using System.Net.Sockets; | 31 | using System.Net.Sockets; |
32 | using System.Reflection; | ||
33 | |||
32 | using OpenSim.Framework; | 34 | using OpenSim.Framework; |
33 | using OpenMetaverse; | 35 | using OpenMetaverse; |
34 | 36 | ||
37 | using log4net; | ||
38 | |||
35 | namespace OpenSim.Services.Interfaces | 39 | namespace OpenSim.Services.Interfaces |
36 | { | 40 | { |
37 | public interface IGridService | 41 | public interface IGridService |
@@ -119,6 +123,9 @@ namespace OpenSim.Services.Interfaces | |||
119 | 123 | ||
120 | public class GridRegion | 124 | public class GridRegion |
121 | { | 125 | { |
126 | private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); | ||
127 | private static readonly string LogHeader = "[GRID REGION]"; | ||
128 | |||
122 | /// <summary> | 129 | /// <summary> |
123 | /// The port by which http communication occurs with the region | 130 | /// The port by which http communication occurs with the region |
124 | /// </summary> | 131 | /// </summary> |
@@ -422,9 +429,13 @@ namespace OpenSim.Services.Interfaces | |||
422 | 429 | ||
423 | if (kvp.ContainsKey("sizeX")) | 430 | if (kvp.ContainsKey("sizeX")) |
424 | RegionSizeX = Convert.ToInt32((string)kvp["sizeX"]); | 431 | RegionSizeX = Convert.ToInt32((string)kvp["sizeX"]); |
432 | else | ||
433 | RegionSizeX = (int)Constants.RegionSize; | ||
425 | 434 | ||
426 | if (kvp.ContainsKey("sizeY")) | 435 | if (kvp.ContainsKey("sizeY")) |
427 | RegionSizeY = Convert.ToInt32((string)kvp["sizeY"]); | 436 | RegionSizeY = Convert.ToInt32((string)kvp["sizeY"]); |
437 | else | ||
438 | RegionSizeX = (int)Constants.RegionSize; | ||
428 | 439 | ||
429 | if (kvp.ContainsKey("regionName")) | 440 | if (kvp.ContainsKey("regionName")) |
430 | RegionName = (string)kvp["regionName"]; | 441 | RegionName = (string)kvp["regionName"]; |
@@ -473,6 +484,9 @@ namespace OpenSim.Services.Interfaces | |||
473 | 484 | ||
474 | if (kvp.ContainsKey("Token")) | 485 | if (kvp.ContainsKey("Token")) |
475 | Token = kvp["Token"].ToString(); | 486 | Token = kvp["Token"].ToString(); |
487 | |||
488 | m_log.DebugFormat("{0} New GridRegion. id={1}, loc=<{2},{3}>, size=<{4},{5}>", | ||
489 | LogHeader, RegionID, RegionLocX, RegionLocY, RegionSizeX, RegionSizeY); | ||
476 | } | 490 | } |
477 | } | 491 | } |
478 | } | 492 | } |