diff options
author | Melanie | 2019-08-20 23:28:59 +0100 |
---|---|---|
committer | Melanie | 2019-08-20 23:28:59 +0100 |
commit | 0fd17c08ae642fac17b24dfad06c61cfe5739483 (patch) | |
tree | 4871c96eab2f5b118cb09d670a3a4ba024cf1210 /OpenSim/Region/ScriptEngine/XEngine/XEngine.cs | |
parent | change PGSQL migration (diff) | |
download | opensim-SC-0fd17c08ae642fac17b24dfad06c61cfe5739483.zip opensim-SC-0fd17c08ae642fac17b24dfad06c61cfe5739483.tar.gz opensim-SC-0fd17c08ae642fac17b24dfad06c61cfe5739483.tar.bz2 opensim-SC-0fd17c08ae642fac17b24dfad06c61cfe5739483.tar.xz |
Massive console refactor. Greatly simplify interface.
Diffstat (limited to 'OpenSim/Region/ScriptEngine/XEngine/XEngine.cs')
-rwxr-xr-x | OpenSim/Region/ScriptEngine/XEngine/XEngine.cs | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs b/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs index dd83744..e4a41de 100755 --- a/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs +++ b/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs | |||
@@ -456,7 +456,7 @@ namespace OpenSim.Region.ScriptEngine.XEngine | |||
456 | } | 456 | } |
457 | 457 | ||
458 | si.DebugLevel = newLevel; | 458 | si.DebugLevel = newLevel; |
459 | MainConsole.Instance.OutputFormat("Set debug level of {0} {1} to {2}", si.ScriptName, si.ItemID, newLevel); | 459 | MainConsole.Instance.Output("Set debug level of {0} {1} to {2}", null, si.ScriptName, si.ItemID, newLevel); |
460 | } | 460 | } |
461 | 461 | ||
462 | /// <summary> | 462 | /// <summary> |
@@ -472,12 +472,12 @@ namespace OpenSim.Region.ScriptEngine.XEngine | |||
472 | if (ConsoleUtil.TryParseConsoleNaturalInt(MainConsole.Instance, args[3], out newDebug)) | 472 | if (ConsoleUtil.TryParseConsoleNaturalInt(MainConsole.Instance, args[3], out newDebug)) |
473 | { | 473 | { |
474 | DebugLevel = newDebug; | 474 | DebugLevel = newDebug; |
475 | MainConsole.Instance.OutputFormat("Debug level set to {0} in XEngine for region {1}", newDebug, m_Scene.Name); | 475 | MainConsole.Instance.Output("Debug level set to {0} in XEngine for region {1}", null, newDebug, m_Scene.Name); |
476 | } | 476 | } |
477 | } | 477 | } |
478 | else if (args.Length == 3) | 478 | else if (args.Length == 3) |
479 | { | 479 | { |
480 | MainConsole.Instance.OutputFormat("Current debug level is {0}", DebugLevel); | 480 | MainConsole.Instance.Output("Current debug level is {0}", null, DebugLevel); |
481 | } | 481 | } |
482 | else | 482 | else |
483 | { | 483 | { |
@@ -532,7 +532,7 @@ namespace OpenSim.Region.ScriptEngine.XEngine | |||
532 | 532 | ||
533 | if (!UUID.TryParse(rawItemId, out itemId)) | 533 | if (!UUID.TryParse(rawItemId, out itemId)) |
534 | { | 534 | { |
535 | MainConsole.Instance.OutputFormat("ERROR: {0} is not a valid UUID", rawItemId); | 535 | MainConsole.Instance.Output("ERROR: {0} is not a valid UUID", null, rawItemId); |
536 | continue; | 536 | continue; |
537 | } | 537 | } |
538 | 538 | ||
@@ -617,8 +617,8 @@ namespace OpenSim.Region.ScriptEngine.XEngine | |||
617 | { | 617 | { |
618 | lock (m_Scripts) | 618 | lock (m_Scripts) |
619 | { | 619 | { |
620 | MainConsole.Instance.OutputFormat( | 620 | MainConsole.Instance.Output( |
621 | "Showing {0} scripts in {1}", m_Scripts.Count, m_Scene.RegionInfo.RegionName); | 621 | "Showing {0} scripts in {1}", null, m_Scripts.Count, m_Scene.RegionInfo.RegionName); |
622 | } | 622 | } |
623 | } | 623 | } |
624 | 624 | ||
@@ -669,8 +669,9 @@ namespace OpenSim.Region.ScriptEngine.XEngine | |||
669 | instance.Suspend(); | 669 | instance.Suspend(); |
670 | 670 | ||
671 | SceneObjectPart sop = m_Scene.GetSceneObjectPart(instance.ObjectID); | 671 | SceneObjectPart sop = m_Scene.GetSceneObjectPart(instance.ObjectID); |
672 | MainConsole.Instance.OutputFormat( | 672 | MainConsole.Instance.Output( |
673 | "Suspended {0}.{1}, item UUID {2}, prim UUID {3} @ {4}", | 673 | "Suspended {0}.{1}, item UUID {2}, prim UUID {3} @ {4}", |
674 | null, | ||
674 | instance.PrimName, instance.ScriptName, instance.ItemID, instance.ObjectID, sop.AbsolutePosition); | 675 | instance.PrimName, instance.ScriptName, instance.ItemID, instance.ObjectID, sop.AbsolutePosition); |
675 | } | 676 | } |
676 | } | 677 | } |
@@ -682,8 +683,9 @@ namespace OpenSim.Region.ScriptEngine.XEngine | |||
682 | instance.Resume(); | 683 | instance.Resume(); |
683 | 684 | ||
684 | SceneObjectPart sop = m_Scene.GetSceneObjectPart(instance.ObjectID); | 685 | SceneObjectPart sop = m_Scene.GetSceneObjectPart(instance.ObjectID); |
685 | MainConsole.Instance.OutputFormat( | 686 | MainConsole.Instance.Output( |
686 | "Resumed {0}.{1}, item UUID {2}, prim UUID {3} @ {4}", | 687 | "Resumed {0}.{1}, item UUID {2}, prim UUID {3} @ {4}", |
688 | null, | ||
687 | instance.PrimName, instance.ScriptName, instance.ItemID, instance.ObjectID, sop.AbsolutePosition); | 689 | instance.PrimName, instance.ScriptName, instance.ItemID, instance.ObjectID, sop.AbsolutePosition); |
688 | } | 690 | } |
689 | } | 691 | } |
@@ -695,8 +697,9 @@ namespace OpenSim.Region.ScriptEngine.XEngine | |||
695 | instance.Start(); | 697 | instance.Start(); |
696 | 698 | ||
697 | SceneObjectPart sop = m_Scene.GetSceneObjectPart(instance.ObjectID); | 699 | SceneObjectPart sop = m_Scene.GetSceneObjectPart(instance.ObjectID); |
698 | MainConsole.Instance.OutputFormat( | 700 | MainConsole.Instance.Output( |
699 | "Started {0}.{1}, item UUID {2}, prim UUID {3} @ {4}", | 701 | "Started {0}.{1}, item UUID {2}, prim UUID {3} @ {4}", |
702 | null, | ||
700 | instance.PrimName, instance.ScriptName, instance.ItemID, instance.ObjectID, sop.AbsolutePosition); | 703 | instance.PrimName, instance.ScriptName, instance.ItemID, instance.ObjectID, sop.AbsolutePosition); |
701 | } | 704 | } |
702 | } | 705 | } |
@@ -710,8 +713,9 @@ namespace OpenSim.Region.ScriptEngine.XEngine | |||
710 | instance.Stop(0); | 713 | instance.Stop(0); |
711 | 714 | ||
712 | SceneObjectPart sop = m_Scene.GetSceneObjectPart(instance.ObjectID); | 715 | SceneObjectPart sop = m_Scene.GetSceneObjectPart(instance.ObjectID); |
713 | MainConsole.Instance.OutputFormat( | 716 | MainConsole.Instance.Output( |
714 | "Stopped {0}.{1}, item UUID {2}, prim UUID {3} @ {4}", | 717 | "Stopped {0}.{1}, item UUID {2}, prim UUID {3} @ {4}", |
718 | null, | ||
715 | instance.PrimName, instance.ScriptName, instance.ItemID, instance.ObjectID, sop.AbsolutePosition); | 719 | instance.PrimName, instance.ScriptName, instance.ItemID, instance.ObjectID, sop.AbsolutePosition); |
716 | } | 720 | } |
717 | } | 721 | } |