HG Friends: debug an issue where the friends data stored in the DB is incomplete.

cpu-performance
Diva Canto 2013-07-04 08:47:45 -07:00
parent 119f84fe11
commit 27cdfb7b84
2 changed files with 9 additions and 1 deletions

View File

@ -546,6 +546,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Friends
FriendsService.StoreFriend(agentID.ToString(), theFriendUUID, 1);
// and also the converse
FriendsService.StoreFriend(theFriendUUID, agentID.ToString(), 1);
m_log.DebugFormat("[HGFRIENDS MODULE]: Stored {0} {01}", agentID, theFriendUUID);
//if (!confirming)
//{

View File

@ -29,6 +29,7 @@ using OpenMetaverse;
using OpenSim.Framework;
using System;
using System.Collections.Generic;
using System.Reflection;
using OpenSim.Services.Interfaces;
using OpenSim.Data;
using Nini.Config;
@ -39,7 +40,12 @@ namespace OpenSim.Services.Friends
{
public class FriendsService : FriendsServiceBase, IFriendsService
{
public FriendsService(IConfigSource config) : base(config)
private static readonly ILog m_log =
LogManager.GetLogger(
MethodBase.GetCurrentMethod().DeclaringType);
public FriendsService(IConfigSource config)
: base(config)
{
}
@ -98,6 +104,7 @@ namespace OpenSim.Services.Friends
d.Data = new Dictionary<string, string>();
d.Data["Flags"] = flags.ToString();
m_log.DebugFormat("[FRIENDS]: Storing {0} {1}", PrincipalID, Friend);
return m_Database.Store(d);
}