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/Services/GridService | |
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/Services/GridService')
-rwxr-xr-x[-rw-r--r--] | OpenSim/Services/GridService/GridService.cs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/OpenSim/Services/GridService/GridService.cs b/OpenSim/Services/GridService/GridService.cs index 78fffa6..7140b32 100644..100755 --- a/OpenSim/Services/GridService/GridService.cs +++ b/OpenSim/Services/GridService/GridService.cs | |||
@@ -772,7 +772,7 @@ namespace OpenSim.Services.GridService | |||
772 | 772 | ||
773 | if (!UUID.TryParse(rawRegionUuid, out regionUuid)) | 773 | if (!UUID.TryParse(rawRegionUuid, out regionUuid)) |
774 | { | 774 | { |
775 | MainConsole.Instance.OutputFormat("{0} is not a valid region uuid", rawRegionUuid); | 775 | MainConsole.Instance.Output("{0} is not a valid region uuid", null, rawRegionUuid); |
776 | return; | 776 | return; |
777 | } | 777 | } |
778 | 778 | ||
@@ -780,18 +780,18 @@ namespace OpenSim.Services.GridService | |||
780 | 780 | ||
781 | if (region == null) | 781 | if (region == null) |
782 | { | 782 | { |
783 | MainConsole.Instance.OutputFormat("No region with UUID {0}", regionUuid); | 783 | MainConsole.Instance.Output("No region with UUID {0}", null, regionUuid); |
784 | return; | 784 | return; |
785 | } | 785 | } |
786 | 786 | ||
787 | if (DeregisterRegion(regionUuid)) | 787 | if (DeregisterRegion(regionUuid)) |
788 | { | 788 | { |
789 | MainConsole.Instance.OutputFormat("Deregistered {0} {1}", region.RegionName, regionUuid); | 789 | MainConsole.Instance.Output("Deregistered {0} {1}", null, region.RegionName, regionUuid); |
790 | } | 790 | } |
791 | else | 791 | else |
792 | { | 792 | { |
793 | // I don't think this can ever occur if we know that the region exists. | 793 | // I don't think this can ever occur if we know that the region exists. |
794 | MainConsole.Instance.OutputFormat("Error deregistering {0} {1}", region.RegionName, regionUuid); | 794 | MainConsole.Instance.Output("Error deregistering {0} {1}", null, region.RegionName, regionUuid); |
795 | } | 795 | } |
796 | } | 796 | } |
797 | } | 797 | } |
@@ -828,7 +828,7 @@ namespace OpenSim.Services.GridService | |||
828 | MainConsole.Instance.Output("it will count regions that are inactive but were not deregistered from the grid service"); | 828 | MainConsole.Instance.Output("it will count regions that are inactive but were not deregistered from the grid service"); |
829 | MainConsole.Instance.Output("(e.g. simulator crashed rather than shutting down cleanly).\n"); | 829 | MainConsole.Instance.Output("(e.g. simulator crashed rather than shutting down cleanly).\n"); |
830 | 830 | ||
831 | MainConsole.Instance.OutputFormat("Grid size: {0} km squared.", size / 1000000); | 831 | MainConsole.Instance.Output("Grid size: {0} km squared.", null, size / 1000000); |
832 | } | 832 | } |
833 | 833 | ||
834 | private void HandleShowRegion(string module, string[] cmd) | 834 | private void HandleShowRegion(string module, string[] cmd) |
@@ -877,7 +877,7 @@ namespace OpenSim.Services.GridService | |||
877 | 877 | ||
878 | if (region == null) | 878 | if (region == null) |
879 | { | 879 | { |
880 | MainConsole.Instance.OutputFormat("No region found at {0},{1}", x, y); | 880 | MainConsole.Instance.Output("No region found at {0},{1}", null, x, y); |
881 | return; | 881 | return; |
882 | } | 882 | } |
883 | 883 | ||