Make an exception report more clear. Fix a database access in Presence to

conform to the changes in the generic table handler.
slimupdates
Melanie 2010-02-08 17:38:05 +00:00
parent b8346e87d8
commit 210649f0d4
2 changed files with 24 additions and 17 deletions

View File

@ -122,6 +122,12 @@ namespace OpenSim.Data.MySQL
cmd.CommandText = String.Format("select * from {0} where UserID=?UserID", m_Realm); cmd.CommandText = String.Format("select * from {0} where UserID=?UserID", m_Realm);
cmd.Parameters.AddWithValue("?UserID", userID); cmd.Parameters.AddWithValue("?UserID", userID);
;
using (MySqlConnection dbcon = new MySqlConnection(m_connectionString))
{
dbcon.Open();
cmd.Connection = dbcon;
using (IDataReader reader = cmd.ExecuteReader()) using (IDataReader reader = cmd.ExecuteReader())
{ {
@ -146,3 +152,4 @@ namespace OpenSim.Data.MySQL
} }
} }
} }
}

View File

@ -240,7 +240,7 @@ namespace OpenSim.Services.LLLoginService
} }
catch (Exception e) catch (Exception e)
{ {
m_log.WarnFormat("[LLOGIN SERVICE]: Exception processing login for {0} {1}: {2}", firstName, lastName, e.StackTrace); m_log.WarnFormat("[LLOGIN SERVICE]: Exception processing login for {0} {1}: {2}", firstName, lastName, e.ToString());
if (m_PresenceService != null) if (m_PresenceService != null)
m_PresenceService.LogoutAgent(session, new Vector3(128, 128, 0), new Vector3(0, 1, 0)); m_PresenceService.LogoutAgent(session, new Vector3(128, 128, 0), new Vector3(0, 1, 0));
return LLFailedLoginResponse.InternalError; return LLFailedLoginResponse.InternalError;