Prevent a crash if "debug jobengine log" is entered without a log level

0.8.2-post-fixes
Oren Hurvitz 2015-07-17 16:46:19 +03:00
parent 4ad1468165
commit c8135834db
1 changed files with 6 additions and 0 deletions

View File

@ -267,6 +267,12 @@ namespace OpenSim.Framework.Monitoring
}
else if (subCommand == "log")
{
if (args.Length < 4)
{
MainConsole.Instance.Output("Usage: debug jobengine log <level>");
return;
}
// int logLevel;
int logLevel = int.Parse(args[3]);
// if (ConsoleUtil.TryParseConsoleInt(MainConsole.Instance, args[4], out logLevel))