Log information about which function, request data and agent ID triggered an XmlRpcGroupsServiceConnector error

This commit is contained in:
Justin Clark-Casey (justincc)
2014-02-14 21:28:45 +00:00
parent ffd0da23fb
commit 733e067958
2 changed files with 29 additions and 14 deletions

View File

@@ -1745,6 +1745,30 @@ namespace OpenSim.Framework
return data;
}
/// <summary>
/// Pretty format the hashtable contents to a single line.
/// </summary>
/// <remarks>
/// Used for debugging output.
/// </remarks>
/// <param name='ht'></param>
public static string PrettyFormatToSingleLine(Hashtable ht)
{
StringBuilder sb = new StringBuilder();
int i = 0;
foreach (string key in ht.Keys)
{
sb.AppendFormat("{0}:{1}", key, ht[key]);
if (++i < ht.Count)
sb.AppendFormat(", ");
}
return sb.ToString();
}
/// <summary>
/// Used to trigger an early library load on Windows systems.
/// </summary>