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

This commit is contained in:
Oren Hurvitz
2015-07-17 16:46:19 +03:00
parent 4ad1468165
commit c8135834db

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