diff options
author | Oren Hurvitz | 2015-07-27 08:54:18 +0300 |
---|---|---|
committer | Oren Hurvitz | 2015-08-11 07:35:38 +0100 |
commit | 7457173fe4d4f4716337b87cd1a8f5672c90d367 (patch) | |
tree | 5e47cefb0a4c98af1bd7fc5eb7d0f0b29e230115 | |
parent | Prevent a crash if "debug jobengine log" is entered without a log level (diff) | |
download | opensim-SC_OLD-7457173fe4d4f4716337b87cd1a8f5672c90d367.zip opensim-SC_OLD-7457173fe4d4f4716337b87cd1a8f5672c90d367.tar.gz opensim-SC_OLD-7457173fe4d4f4716337b87cd1a8f5672c90d367.tar.bz2 opensim-SC_OLD-7457173fe4d4f4716337b87cd1a8f5672c90d367.tar.xz |
Fixed calling "debug xengine log" without the 'level' parameter: this should show the current log level; not crash
-rwxr-xr-x | OpenSim/Region/ScriptEngine/XEngine/XEngine.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs b/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs index 4e383f8..e5e5698 100755 --- a/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs +++ b/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs | |||
@@ -460,7 +460,7 @@ namespace OpenSim.Region.ScriptEngine.XEngine | |||
460 | /// <param name="args"></param> | 460 | /// <param name="args"></param> |
461 | private void HandleDebugLevelCommand(string module, string[] args) | 461 | private void HandleDebugLevelCommand(string module, string[] args) |
462 | { | 462 | { |
463 | if (args.Length <= 4) | 463 | if (args.Length >= 4) |
464 | { | 464 | { |
465 | int newDebug; | 465 | int newDebug; |
466 | if (ConsoleUtil.TryParseConsoleNaturalInt(MainConsole.Instance, args[3], out newDebug)) | 466 | if (ConsoleUtil.TryParseConsoleNaturalInt(MainConsole.Instance, args[3], out newDebug)) |