From 0eec2ad030c366439c8d5e506efd804a2055585b Mon Sep 17 00:00:00 2001 From: Charles Krinke Date: Sun, 16 Dec 2007 20:33:04 +0000 Subject: Improve UserServer login messages for logging. --- OpenSim/Grid/UserServer/UserLoginService.cs | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'OpenSim/Grid/UserServer') diff --git a/OpenSim/Grid/UserServer/UserLoginService.cs b/OpenSim/Grid/UserServer/UserLoginService.cs index ccba1de..041cc88 100644 --- a/OpenSim/Grid/UserServer/UserLoginService.cs +++ b/OpenSim/Grid/UserServer/UserLoginService.cs @@ -60,7 +60,8 @@ namespace OpenSim.Grid.UserServer public override void CustomiseResponse(LoginResponse response, UserProfileData theUser) { bool tryDefault = false; - MainLog.Instance.Verbose("LOGIN", "Load information from the gridserver"); + //CFK: Since the try is always "tried", the "Home Location" message should always appear, so comment this one. + //CFK: MainLog.Instance.Verbose("LOGIN", "Load information from the gridserver"); RegionProfileData SimInfo = new RegionProfileData(); try { @@ -78,8 +79,10 @@ namespace OpenSim.Grid.UserServer theUser.homeLocation.Y.ToString() + ",r" + theUser.homeLocation.Z.ToString() + "]}"; // Destination - MainLog.Instance.Verbose("LOGIN", "CUSTOMISERESPONSE: Region X: " + SimInfo.regionLocX + "; Region Y: " + - SimInfo.regionLocY); + //CFK: The "Notifying" message always seems to appear, so subsume the data from this message into + //CFK: the next one for X & Y and comment this one. + //CFK: MainLog.Instance.Verbose("LOGIN", "CUSTOMISERESPONSE: Region X: " + SimInfo.regionLocX + + //CFK: "; Region Y: " + SimInfo.regionLocY); response.SimAddress = Util.GetHostFromDNS(SimInfo.serverIP).ToString(); response.SimPort = (uint) SimInfo.serverPort; response.RegionX = SimInfo.regionLocX; @@ -90,7 +93,8 @@ namespace OpenSim.Grid.UserServer response.SeedCapability = SimInfo.httpServerURI + "CAPS/" + capsPath + "0000/"; // Notify the target of an incoming user - MainLog.Instance.Verbose("LOGIN", "Notifying " + SimInfo.regionName + " (" + SimInfo.serverURI + ")"); + MainLog.Instance.Verbose("LOGIN", SimInfo.regionName + " (" + SimInfo.serverURI + ") " + + SimInfo.regionLocX + "," + SimInfo.regionLocY); // Prepare notification Hashtable SimParams = new Hashtable(); -- cgit v1.1