Add "debug groups verbose <true|false>" region console command
This allows one to turn on super-verbose groups debug logging on and off whilst the region is in operation.0.7.4-extended
parent
9d4415429d
commit
0df4927710
|
@ -123,7 +123,36 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups
|
|||
public void AddRegion(Scene scene)
|
||||
{
|
||||
if (m_groupsEnabled)
|
||||
{
|
||||
scene.RegisterModuleInterface<IGroupsModule>(this);
|
||||
scene.AddCommand(
|
||||
"debug",
|
||||
this,
|
||||
"debug groups verbose",
|
||||
"debug groups verbose <true|false>",
|
||||
"This setting turns on very verbose groups debugging",
|
||||
HandleDebugGroupsVerbose);
|
||||
}
|
||||
}
|
||||
|
||||
private void HandleDebugGroupsVerbose(object modules, string[] args)
|
||||
{
|
||||
if (args.Length < 4)
|
||||
{
|
||||
MainConsole.Instance.Output("Usage: debug groups verbose <true|false>");
|
||||
return;
|
||||
}
|
||||
|
||||
bool verbose = false;
|
||||
if (!bool.TryParse(args[3], out verbose))
|
||||
{
|
||||
MainConsole.Instance.Output("Usage: debug groups verbose <true|false>");
|
||||
return;
|
||||
}
|
||||
|
||||
m_debugEnabled = verbose;
|
||||
|
||||
MainConsole.Instance.Output("{0} verbose logging set to {1}", Name, m_debugEnabled);
|
||||
}
|
||||
|
||||
public void RegionLoaded(Scene scene)
|
||||
|
|
Loading…
Reference in New Issue