diff options
author | Justin Clark-Casey (justincc) | 2014-11-21 21:25:55 +0000 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2014-11-25 23:23:11 +0000 |
commit | 4b45a1b6adda6483ce25dfd8da8b4b94557779dc (patch) | |
tree | 3c13c4593bb8c86700f74e3463de7c959cdf9c88 /OpenSim/Framework/Monitoring/JobEngine.cs | |
parent | Make small adjustment to JobEngine default from previous commit to enable it ... (diff) | |
download | opensim-SC_OLD-4b45a1b6adda6483ce25dfd8da8b4b94557779dc.zip opensim-SC_OLD-4b45a1b6adda6483ce25dfd8da8b4b94557779dc.tar.gz opensim-SC_OLD-4b45a1b6adda6483ce25dfd8da8b4b94557779dc.tar.bz2 opensim-SC_OLD-4b45a1b6adda6483ce25dfd8da8b4b94557779dc.tar.xz |
Change jobengine logging command to "debug jobengine log <int>" rather than loglevel, in common with similar commands.
Diffstat (limited to 'OpenSim/Framework/Monitoring/JobEngine.cs')
-rw-r--r-- | OpenSim/Framework/Monitoring/JobEngine.cs | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/OpenSim/Framework/Monitoring/JobEngine.cs b/OpenSim/Framework/Monitoring/JobEngine.cs index 7dcce6a..4a46328 100644 --- a/OpenSim/Framework/Monitoring/JobEngine.cs +++ b/OpenSim/Framework/Monitoring/JobEngine.cs | |||
@@ -91,9 +91,9 @@ namespace OpenSim.Framework.Monitoring | |||
91 | "Debug", | 91 | "Debug", |
92 | false, | 92 | false, |
93 | "debug jobengine", | 93 | "debug jobengine", |
94 | "debug jobengine <start|stop|status>", | 94 | "debug jobengine <start|stop|status|log>", |
95 | "Start, stop or get status of the job engine.", | 95 | "Start, stop, get status or set logging level of the job engine.", |
96 | "If stopped then all jobs are processed immediately.", | 96 | "If stopped then all outstanding jobs are processed immediately.", |
97 | HandleControlCommand); | 97 | HandleControlCommand); |
98 | } | 98 | } |
99 | 99 | ||
@@ -277,7 +277,7 @@ namespace OpenSim.Framework.Monitoring | |||
277 | 277 | ||
278 | if (args.Length < 3) | 278 | if (args.Length < 3) |
279 | { | 279 | { |
280 | MainConsole.Instance.Output("Usage: debug jobengine <stop|start|status|loglevel>"); | 280 | MainConsole.Instance.Output("Usage: debug jobengine <stop|start|status|log>"); |
281 | return; | 281 | return; |
282 | } | 282 | } |
283 | 283 | ||
@@ -301,15 +301,14 @@ namespace OpenSim.Framework.Monitoring | |||
301 | "Jobs waiting: {0}", IsRunning ? m_requestQueue.Count.ToString() : "n/a"); | 301 | "Jobs waiting: {0}", IsRunning ? m_requestQueue.Count.ToString() : "n/a"); |
302 | MainConsole.Instance.OutputFormat("Log Level: {0}", LogLevel); | 302 | MainConsole.Instance.OutputFormat("Log Level: {0}", LogLevel); |
303 | } | 303 | } |
304 | 304 | else if (subCommand == "log") | |
305 | else if (subCommand == "loglevel") | ||
306 | { | 305 | { |
307 | // int logLevel; | 306 | // int logLevel; |
308 | int logLevel = int.Parse(args[3]); | 307 | int logLevel = int.Parse(args[3]); |
309 | // if (ConsoleUtil.TryParseConsoleInt(MainConsole.Instance, args[4], out logLevel)) | 308 | // if (ConsoleUtil.TryParseConsoleInt(MainConsole.Instance, args[4], out logLevel)) |
310 | // { | 309 | // { |
311 | LogLevel = logLevel; | 310 | LogLevel = logLevel; |
312 | MainConsole.Instance.OutputFormat("Set log level to {0}", LogLevel); | 311 | MainConsole.Instance.OutputFormat("Set debug log level to {0}", LogLevel); |
313 | // } | 312 | // } |
314 | } | 313 | } |
315 | else | 314 | else |