Change jobengine logging command to "debug jobengine log <int>" rather than loglevel, in common with similar commands.
parent
b1fd0d35e5
commit
4b45a1b6ad
|
@ -91,9 +91,9 @@ namespace OpenSim.Framework.Monitoring
|
||||||
"Debug",
|
"Debug",
|
||||||
false,
|
false,
|
||||||
"debug jobengine",
|
"debug jobengine",
|
||||||
"debug jobengine <start|stop|status>",
|
"debug jobengine <start|stop|status|log>",
|
||||||
"Start, stop or get status of the job engine.",
|
"Start, stop, get status or set logging level of the job engine.",
|
||||||
"If stopped then all jobs are processed immediately.",
|
"If stopped then all outstanding jobs are processed immediately.",
|
||||||
HandleControlCommand);
|
HandleControlCommand);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -277,7 +277,7 @@ namespace OpenSim.Framework.Monitoring
|
||||||
|
|
||||||
if (args.Length < 3)
|
if (args.Length < 3)
|
||||||
{
|
{
|
||||||
MainConsole.Instance.Output("Usage: debug jobengine <stop|start|status|loglevel>");
|
MainConsole.Instance.Output("Usage: debug jobengine <stop|start|status|log>");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -301,15 +301,14 @@ namespace OpenSim.Framework.Monitoring
|
||||||
"Jobs waiting: {0}", IsRunning ? m_requestQueue.Count.ToString() : "n/a");
|
"Jobs waiting: {0}", IsRunning ? m_requestQueue.Count.ToString() : "n/a");
|
||||||
MainConsole.Instance.OutputFormat("Log Level: {0}", LogLevel);
|
MainConsole.Instance.OutputFormat("Log Level: {0}", LogLevel);
|
||||||
}
|
}
|
||||||
|
else if (subCommand == "log")
|
||||||
else if (subCommand == "loglevel")
|
|
||||||
{
|
{
|
||||||
// int logLevel;
|
// int logLevel;
|
||||||
int logLevel = int.Parse(args[3]);
|
int logLevel = int.Parse(args[3]);
|
||||||
// if (ConsoleUtil.TryParseConsoleInt(MainConsole.Instance, args[4], out logLevel))
|
// if (ConsoleUtil.TryParseConsoleInt(MainConsole.Instance, args[4], out logLevel))
|
||||||
// {
|
// {
|
||||||
LogLevel = logLevel;
|
LogLevel = logLevel;
|
||||||
MainConsole.Instance.OutputFormat("Set log level to {0}", LogLevel);
|
MainConsole.Instance.OutputFormat("Set debug log level to {0}", LogLevel);
|
||||||
// }
|
// }
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue