From e41b0feb5895365e8f4b41b13facf6d07e6a6a44 Mon Sep 17 00:00:00 2001
From: Charles Krinke
Date: Fri, 12 Oct 2007 13:50:11 +0000
Subject: Turn a few of the writelines into mainlog entries so failed logins
can be more easily analyzed.
---
OpenSim/Framework/Communications/LoginService.cs | 14 +++++++-------
OpenSim/Grid/UserServer/UserLoginService.cs | 14 +++++++-------
2 files changed, 14 insertions(+), 14 deletions(-)
diff --git a/OpenSim/Framework/Communications/LoginService.cs b/OpenSim/Framework/Communications/LoginService.cs
index fddfb17..029c0a6e 100644
--- a/OpenSim/Framework/Communications/LoginService.cs
+++ b/OpenSim/Framework/Communications/LoginService.cs
@@ -36,9 +36,9 @@ namespace OpenSim.Framework.UserManagement
/// The XMLRPC request
/// The response to send
public XmlRpcResponse XmlRpcLoginMethod(XmlRpcRequest request)
- {
-
- System.Console.WriteLine("Attempting login now...");
+ {
+
+ MainLog.Instance.Verbose("Attempting login now...");
XmlRpcResponse response = new XmlRpcResponse();
Hashtable requestData = (Hashtable)request.Params[0];
@@ -121,8 +121,8 @@ namespace OpenSim.Framework.UserManagement
this.CustomiseResponse(logResponse, userProfile);
}
catch (Exception e)
- {
- System.Console.WriteLine(e.ToString());
+ {
+ MainLog.Instance.Verbose(e.ToString());
return logResponse.CreateDeadRegionResponse();
//return logResponse.ToXmlRpcResponse();
}
@@ -132,8 +132,8 @@ namespace OpenSim.Framework.UserManagement
}
catch (Exception E)
- {
- System.Console.WriteLine(E.ToString());
+ {
+ MainLog.Instance.Verbose(E.ToString());
}
//}
}
diff --git a/OpenSim/Grid/UserServer/UserLoginService.cs b/OpenSim/Grid/UserServer/UserLoginService.cs
index e18191f..ad26840 100644
--- a/OpenSim/Grid/UserServer/UserLoginService.cs
+++ b/OpenSim/Grid/UserServer/UserLoginService.cs
@@ -37,8 +37,8 @@ namespace OpenSim.Grid.UserServer
"'position':[r" + theUser.homeLocation.X.ToString() + ",r" + theUser.homeLocation.Y.ToString() + ",r" + theUser.homeLocation.Z.ToString() + "], " +
"'look_at':[r" + theUser.homeLocation.X.ToString() + ",r" + theUser.homeLocation.Y.ToString() + ",r" + theUser.homeLocation.Z.ToString() + "]}";
- // Destination
- Console.WriteLine("CUSTOMISERESPONSE: Region X: " + SimInfo.regionLocX + "; Region Y: " + SimInfo.regionLocY);
+ // Destination
+ MainLog.Instance.Verbose("CUSTOMISERESPONSE: Region X: " + SimInfo.regionLocX + "; Region Y: " + SimInfo.regionLocY);
response.SimAddress = Util.GetHostFromDNS(SimInfo.serverIP).ToString();
response.SimPort = (Int32)SimInfo.serverPort;
response.RegionX = SimInfo.regionLocX;
@@ -48,8 +48,8 @@ namespace OpenSim.Grid.UserServer
string capsPath = Util.GetRandomCapsPath();
response.SeedCapability = SimInfo.httpServerURI + "CAPS/" + capsPath + "0000/";
- // Notify the target of an incoming user
- Console.WriteLine("Notifying " + SimInfo.regionName + " (" + SimInfo.serverURI + ")");
+ // Notify the target of an incoming user
+ MainLog.Instance.Verbose("Notifying " + SimInfo.regionName + " (" + SimInfo.serverURI + ")");
// Prepare notification
Hashtable SimParams = new Hashtable();
@@ -69,9 +69,9 @@ namespace OpenSim.Grid.UserServer
// Update agent with target sim
theUser.currentAgent.currentRegion = SimInfo.UUID;
- theUser.currentAgent.currentHandle = SimInfo.regionHandle;
-
- System.Console.WriteLine("Informing region --> " + SimInfo.httpServerURI);
+ theUser.currentAgent.currentHandle = SimInfo.regionHandle;
+
+ MainLog.Instance.Verbose("Informing region --> " + SimInfo.httpServerURI);
// Send
try
{
--
cgit v1.1