mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 01:35:46 +08:00
Log information about which function, request data and agent ID triggered an XmlRpcGroupsServiceConnector error
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user