Change jobengine logging command to "debug jobengine log <int>" rather than loglevel, in common with similar commands.

ghosts
Justin Clark-Casey (justincc) 2014-11-21 21:25:55 +00:00
parent 11ed60645a
commit c18cecbeb7
1 changed files with 6 additions and 7 deletions

View File

@ -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