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/ClientStack | |
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 '')
-rwxr-xr-x[-rw-r--r--] | OpenSim/Region/ClientStack/Linden/Caps/EventQueue/EventQueueGetModule.cs | 11 | ||||
-rwxr-xr-x[-rw-r--r--] | OpenSim/Region/ClientStack/Linden/UDP/LLUDPServerCommands.cs | 82 |
2 files changed, 53 insertions, 40 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/Caps/EventQueue/EventQueueGetModule.cs b/OpenSim/Region/ClientStack/Linden/Caps/EventQueue/EventQueueGetModule.cs index 4e451b5..8ac348e 100644..100755 --- a/OpenSim/Region/ClientStack/Linden/Caps/EventQueue/EventQueueGetModule.cs +++ b/OpenSim/Region/ClientStack/Linden/Caps/EventQueue/EventQueueGetModule.cs | |||
@@ -150,26 +150,27 @@ namespace OpenSim.Region.ClientStack.Linden | |||
150 | 150 | ||
151 | if (!(args.Length == 3 && int.TryParse(args[2], out debugLevel))) | 151 | if (!(args.Length == 3 && int.TryParse(args[2], out debugLevel))) |
152 | { | 152 | { |
153 | MainConsole.Instance.OutputFormat("Usage: debug eq [0|1|2]"); | 153 | MainConsole.Instance.Output("Usage: debug eq [0|1|2]"); |
154 | } | 154 | } |
155 | else | 155 | else |
156 | { | 156 | { |
157 | DebugLevel = debugLevel; | 157 | DebugLevel = debugLevel; |
158 | MainConsole.Instance.OutputFormat( | 158 | MainConsole.Instance.Output( |
159 | "Set event queue debug level to {0} in {1}", DebugLevel, m_scene.RegionInfo.RegionName); | 159 | "Set event queue debug level to {0} in {1}", null, DebugLevel, m_scene.RegionInfo.RegionName); |
160 | } | 160 | } |
161 | } | 161 | } |
162 | 162 | ||
163 | protected void HandleShowEq(string module, string[] args) | 163 | protected void HandleShowEq(string module, string[] args) |
164 | { | 164 | { |
165 | MainConsole.Instance.OutputFormat("For scene {0}", m_scene.Name); | 165 | MainConsole.Instance.Output("For scene {0}", null, m_scene.Name); |
166 | 166 | ||
167 | lock (queues) | 167 | lock (queues) |
168 | { | 168 | { |
169 | foreach (KeyValuePair<UUID, Queue<OSD>> kvp in queues) | 169 | foreach (KeyValuePair<UUID, Queue<OSD>> kvp in queues) |
170 | { | 170 | { |
171 | MainConsole.Instance.OutputFormat( | 171 | MainConsole.Instance.Output( |
172 | "For agent {0} there are {1} messages queued for send.", | 172 | "For agent {0} there are {1} messages queued for send.", |
173 | null, | ||
173 | kvp.Key, kvp.Value.Count); | 174 | kvp.Key, kvp.Value.Count); |
174 | } | 175 | } |
175 | } | 176 | } |
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServerCommands.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServerCommands.cs index a4d7eb9..be3c4b7 100644..100755 --- a/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServerCommands.cs +++ b/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServerCommands.cs | |||
@@ -222,7 +222,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
222 | if (SceneManager.Instance.CurrentScene != null && SceneManager.Instance.CurrentScene != m_udpServer.Scene) | 222 | if (SceneManager.Instance.CurrentScene != null && SceneManager.Instance.CurrentScene != m_udpServer.Scene) |
223 | return; | 223 | return; |
224 | 224 | ||
225 | m_console.OutputFormat("Throttles for {0}", m_udpServer.Scene.Name); | 225 | m_console.Output("Throttles for {0}", null, m_udpServer.Scene.Name); |
226 | ConsoleDisplayList cdl = new ConsoleDisplayList(); | 226 | ConsoleDisplayList cdl = new ConsoleDisplayList(); |
227 | cdl.AddRow("Adaptive throttles", m_udpServer.ThrottleRates.AdaptiveThrottlesEnabled); | 227 | cdl.AddRow("Adaptive throttles", m_udpServer.ThrottleRates.AdaptiveThrottlesEnabled); |
228 | 228 | ||
@@ -238,7 +238,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
238 | 238 | ||
239 | m_console.Output(cdl.ToString()); | 239 | m_console.Output(cdl.ToString()); |
240 | 240 | ||
241 | m_console.OutputFormat("{0}\n", GetServerThrottlesReport(m_udpServer)); | 241 | m_console.Output("{0}\n", null, GetServerThrottlesReport(m_udpServer)); |
242 | } | 242 | } |
243 | 243 | ||
244 | private string GetServerThrottlesReport(LLUDPServer udpServer) | 244 | private string GetServerThrottlesReport(LLUDPServer udpServer) |
@@ -297,7 +297,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
297 | 297 | ||
298 | if (args.Length != 7) | 298 | if (args.Length != 7) |
299 | { | 299 | { |
300 | MainConsole.Instance.OutputFormat("Usage: debug lludp data out <true|false> <avatar-first-name> <avatar-last-name>"); | 300 | MainConsole.Instance.Output("Usage: debug lludp data out <true|false> <avatar-first-name> <avatar-last-name>"); |
301 | return; | 301 | return; |
302 | } | 302 | } |
303 | 303 | ||
@@ -312,8 +312,9 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
312 | { | 312 | { |
313 | if (sp.Firstname == firstName && sp.Lastname == lastName) | 313 | if (sp.Firstname == firstName && sp.Lastname == lastName) |
314 | { | 314 | { |
315 | MainConsole.Instance.OutputFormat( | 315 | MainConsole.Instance.Output( |
316 | "Data debug for {0} ({1}) set to {2} in {3}", | 316 | "Data debug for {0} ({1}) set to {2} in {3}", |
317 | null, | ||
317 | sp.Name, sp.IsChildAgent ? "child" : "root", level, m_udpServer.Scene.Name); | 318 | sp.Name, sp.IsChildAgent ? "child" : "root", level, m_udpServer.Scene.Name); |
318 | 319 | ||
319 | ((LLClientView)sp.ControllingClient).UDPClient.DebugDataOutLevel = level; | 320 | ((LLClientView)sp.ControllingClient).UDPClient.DebugDataOutLevel = level; |
@@ -331,7 +332,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
331 | 332 | ||
332 | if (!all && !one) | 333 | if (!all && !one) |
333 | { | 334 | { |
334 | MainConsole.Instance.OutputFormat( | 335 | MainConsole.Instance.Output( |
335 | "Usage: debug lludp throttles log <level> [<avatar-first-name> <avatar-last-name>]"); | 336 | "Usage: debug lludp throttles log <level> [<avatar-first-name> <avatar-last-name>]"); |
336 | return; | 337 | return; |
337 | } | 338 | } |
@@ -353,8 +354,9 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
353 | { | 354 | { |
354 | if (all || (sp.Firstname == firstName && sp.Lastname == lastName)) | 355 | if (all || (sp.Firstname == firstName && sp.Lastname == lastName)) |
355 | { | 356 | { |
356 | MainConsole.Instance.OutputFormat( | 357 | MainConsole.Instance.Output( |
357 | "Throttle log level for {0} ({1}) set to {2} in {3}", | 358 | "Throttle log level for {0} ({1}) set to {2} in {3}", |
359 | null, | ||
358 | sp.Name, sp.IsChildAgent ? "child" : "root", level, m_udpServer.Scene.Name); | 360 | sp.Name, sp.IsChildAgent ? "child" : "root", level, m_udpServer.Scene.Name); |
359 | 361 | ||
360 | ((LLClientView)sp.ControllingClient).UDPClient.ThrottleDebugLevel = level; | 362 | ((LLClientView)sp.ControllingClient).UDPClient.ThrottleDebugLevel = level; |
@@ -372,7 +374,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
372 | 374 | ||
373 | if (!all && !one) | 375 | if (!all && !one) |
374 | { | 376 | { |
375 | MainConsole.Instance.OutputFormat( | 377 | MainConsole.Instance.Output( |
376 | "Usage: debug lludp throttles set <param> <value> [<avatar-first-name> <avatar-last-name>]"); | 378 | "Usage: debug lludp throttles set <param> <value> [<avatar-first-name> <avatar-last-name>]"); |
377 | return; | 379 | return; |
378 | } | 380 | } |
@@ -399,8 +401,9 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
399 | { | 401 | { |
400 | if (all || (sp.Firstname == firstName && sp.Lastname == lastName)) | 402 | if (all || (sp.Firstname == firstName && sp.Lastname == lastName)) |
401 | { | 403 | { |
402 | MainConsole.Instance.OutputFormat( | 404 | MainConsole.Instance.Output( |
403 | "Setting param {0} to {1} for {2} ({3}) in {4}", | 405 | "Setting param {0} to {1} for {2} ({3}) in {4}", |
406 | null, | ||
404 | param, newValue, sp.Name, sp.IsChildAgent ? "child" : "root", m_udpServer.Scene.Name); | 407 | param, newValue, sp.Name, sp.IsChildAgent ? "child" : "root", m_udpServer.Scene.Name); |
405 | 408 | ||
406 | LLUDPClient udpClient = ((LLClientView)sp.ControllingClient).UDPClient; | 409 | LLUDPClient udpClient = ((LLClientView)sp.ControllingClient).UDPClient; |
@@ -422,8 +425,9 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
422 | { | 425 | { |
423 | if (all || (sp.Firstname == firstName && sp.Lastname == lastName)) | 426 | if (all || (sp.Firstname == firstName && sp.Lastname == lastName)) |
424 | { | 427 | { |
425 | MainConsole.Instance.OutputFormat( | 428 | MainConsole.Instance.Output( |
426 | "Setting param {0} to {1} for {2} ({3}) in {4}", | 429 | "Setting param {0} to {1} for {2} ({3}) in {4}", |
430 | null, | ||
427 | param, newValue, sp.Name, sp.IsChildAgent ? "child" : "root", m_udpServer.Scene.Name); | 431 | param, newValue, sp.Name, sp.IsChildAgent ? "child" : "root", m_udpServer.Scene.Name); |
428 | 432 | ||
429 | LLUDPClient udpClient = ((LLClientView)sp.ControllingClient).UDPClient; | 433 | LLUDPClient udpClient = ((LLClientView)sp.ControllingClient).UDPClient; |
@@ -443,8 +447,9 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
443 | { | 447 | { |
444 | if (all || (sp.Firstname == firstName && sp.Lastname == lastName)) | 448 | if (all || (sp.Firstname == firstName && sp.Lastname == lastName)) |
445 | { | 449 | { |
446 | MainConsole.Instance.OutputFormat( | 450 | MainConsole.Instance.Output( |
447 | "Setting param {0} to {1} for {2} ({3}) in {4}", | 451 | "Setting param {0} to {1} for {2} ({3}) in {4}", |
452 | null, | ||
448 | param, newValue, sp.Name, sp.IsChildAgent ? "child" : "root", m_udpServer.Scene.Name); | 453 | param, newValue, sp.Name, sp.IsChildAgent ? "child" : "root", m_udpServer.Scene.Name); |
449 | 454 | ||
450 | LLUDPClient udpClient = ((LLClientView)sp.ControllingClient).UDPClient; | 455 | LLUDPClient udpClient = ((LLClientView)sp.ControllingClient).UDPClient; |
@@ -464,7 +469,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
464 | 469 | ||
465 | if (!all && !one) | 470 | if (!all && !one) |
466 | { | 471 | { |
467 | MainConsole.Instance.OutputFormat( | 472 | MainConsole.Instance.Output( |
468 | "Usage: debug lludp throttles get [<avatar-first-name> <avatar-last-name>]"); | 473 | "Usage: debug lludp throttles get [<avatar-first-name> <avatar-last-name>]"); |
469 | return; | 474 | return; |
470 | } | 475 | } |
@@ -482,8 +487,9 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
482 | { | 487 | { |
483 | if (all || (sp.Firstname == firstName && sp.Lastname == lastName)) | 488 | if (all || (sp.Firstname == firstName && sp.Lastname == lastName)) |
484 | { | 489 | { |
485 | m_console.OutputFormat( | 490 | m_console.Output( |
486 | "Status for {0} ({1}) in {2}", | 491 | "Status for {0} ({1}) in {2}", |
492 | null, | ||
487 | sp.Name, sp.IsChildAgent ? "child" : "root", m_udpServer.Scene.Name); | 493 | sp.Name, sp.IsChildAgent ? "child" : "root", m_udpServer.Scene.Name); |
488 | 494 | ||
489 | LLUDPClient udpClient = ((LLClientView)sp.ControllingClient).UDPClient; | 495 | LLUDPClient udpClient = ((LLClientView)sp.ControllingClient).UDPClient; |
@@ -504,7 +510,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
504 | if (SceneManager.Instance.CurrentScene != null && SceneManager.Instance.CurrentScene != m_udpServer.Scene) | 510 | if (SceneManager.Instance.CurrentScene != null && SceneManager.Instance.CurrentScene != m_udpServer.Scene) |
505 | return; | 511 | return; |
506 | 512 | ||
507 | m_console.OutputFormat("Debug settings for {0}", m_udpServer.Scene.Name); | 513 | m_console.Output("Debug settings for {0}", null, m_udpServer.Scene.Name); |
508 | ConsoleDisplayList cdl = new ConsoleDisplayList(); | 514 | ConsoleDisplayList cdl = new ConsoleDisplayList(); |
509 | 515 | ||
510 | long maxSceneDripRate = (long)m_udpServer.Throttle.MaxDripRate; | 516 | long maxSceneDripRate = (long)m_udpServer.Throttle.MaxDripRate; |
@@ -527,7 +533,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
527 | 533 | ||
528 | if (args.Length != 5) | 534 | if (args.Length != 5) |
529 | { | 535 | { |
530 | MainConsole.Instance.OutputFormat("Usage: debug lludp set <param> <value>"); | 536 | MainConsole.Instance.Output("Usage: debug lludp set <param> <value>"); |
531 | return; | 537 | return; |
532 | } | 538 | } |
533 | 539 | ||
@@ -555,7 +561,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
555 | return; | 561 | return; |
556 | } | 562 | } |
557 | 563 | ||
558 | m_console.OutputFormat("{0} set to {1} in {2}", param, rawValue, m_udpServer.Scene.Name); | 564 | m_console.Output("{0} set to {1} in {2}", null, param, rawValue, m_udpServer.Scene.Name); |
559 | } | 565 | } |
560 | 566 | ||
561 | /* not in use, nothing to set/get from lludp | 567 | /* not in use, nothing to set/get from lludp |
@@ -632,7 +638,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
632 | } | 638 | } |
633 | else | 639 | else |
634 | { | 640 | { |
635 | MainConsole.Instance.OutputFormat("ERROR: Cannot specify a user name when setting default/all logging level"); | 641 | MainConsole.Instance.Output("ERROR: Cannot specify a user name when setting default/all logging level"); |
636 | return; | 642 | return; |
637 | } | 643 | } |
638 | } | 644 | } |
@@ -646,16 +652,18 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
646 | { | 652 | { |
647 | m_udpServer.DefaultClientPacketDebugLevel = newDebug; | 653 | m_udpServer.DefaultClientPacketDebugLevel = newDebug; |
648 | 654 | ||
649 | MainConsole.Instance.OutputFormat( | 655 | MainConsole.Instance.Output( |
650 | "Packet debug for {0} clients set to {1} in {2}", | 656 | "Packet debug for {0} clients set to {1} in {2}", |
657 | null, | ||
651 | (setAll ? "all" : "future"), m_udpServer.DefaultClientPacketDebugLevel, m_udpServer.Scene.Name); | 658 | (setAll ? "all" : "future"), m_udpServer.DefaultClientPacketDebugLevel, m_udpServer.Scene.Name); |
652 | 659 | ||
653 | if (setAll) | 660 | if (setAll) |
654 | { | 661 | { |
655 | m_udpServer.Scene.ForEachScenePresence(sp => | 662 | m_udpServer.Scene.ForEachScenePresence(sp => |
656 | { | 663 | { |
657 | MainConsole.Instance.OutputFormat( | 664 | MainConsole.Instance.Output( |
658 | "Packet debug for {0} ({1}) set to {2} in {3}", | 665 | "Packet debug for {0} ({1}) set to {2} in {3}", |
666 | null, | ||
659 | sp.Name, sp.IsChildAgent ? "child" : "root", newDebug, m_udpServer.Scene.Name); | 667 | sp.Name, sp.IsChildAgent ? "child" : "root", newDebug, m_udpServer.Scene.Name); |
660 | 668 | ||
661 | sp.ControllingClient.DebugPacketLevel = newDebug; | 669 | sp.ControllingClient.DebugPacketLevel = newDebug; |
@@ -668,8 +676,9 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
668 | { | 676 | { |
669 | if (name == null || sp.Name == name) | 677 | if (name == null || sp.Name == name) |
670 | { | 678 | { |
671 | MainConsole.Instance.OutputFormat( | 679 | MainConsole.Instance.Output( |
672 | "Packet debug for {0} ({1}) set to {2} in {3}", | 680 | "Packet debug for {0} ({1}) set to {2} in {3}", |
681 | null, | ||
673 | sp.Name, sp.IsChildAgent ? "child" : "root", newDebug, m_udpServer.Scene.Name); | 682 | sp.Name, sp.IsChildAgent ? "child" : "root", newDebug, m_udpServer.Scene.Name); |
674 | 683 | ||
675 | sp.ControllingClient.DebugPacketLevel = newDebug; | 684 | sp.ControllingClient.DebugPacketLevel = newDebug; |
@@ -701,8 +710,9 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
701 | 710 | ||
702 | if (subCommand == "add") | 711 | if (subCommand == "add") |
703 | { | 712 | { |
704 | MainConsole.Instance.OutputFormat( | 713 | MainConsole.Instance.Output( |
705 | "Adding packet {0} to {1} drop list for all connections in {2}", | 714 | "Adding packet {0} to {1} drop list for all connections in {2}", |
715 | null, | ||
706 | direction, packetName, m_udpServer.Scene.Name); | 716 | direction, packetName, m_udpServer.Scene.Name); |
707 | 717 | ||
708 | m_udpServer.Scene.ForEachScenePresence( | 718 | m_udpServer.Scene.ForEachScenePresence( |
@@ -719,8 +729,9 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
719 | } | 729 | } |
720 | else if (subCommand == "remove") | 730 | else if (subCommand == "remove") |
721 | { | 731 | { |
722 | MainConsole.Instance.OutputFormat( | 732 | MainConsole.Instance.Output( |
723 | "Removing packet {0} from {1} drop list for all connections in {2}", | 733 | "Removing packet {0} from {1} drop list for all connections in {2}", |
734 | null, | ||
724 | direction, packetName, m_udpServer.Scene.Name); | 735 | direction, packetName, m_udpServer.Scene.Name); |
725 | 736 | ||
726 | m_udpServer.Scene.ForEachScenePresence( | 737 | m_udpServer.Scene.ForEachScenePresence( |
@@ -784,8 +795,8 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
784 | 795 | ||
785 | m_udpServer.DiscardInboundAgentUpdates = !m_udpServer.DiscardInboundAgentUpdates; | 796 | m_udpServer.DiscardInboundAgentUpdates = !m_udpServer.DiscardInboundAgentUpdates; |
786 | 797 | ||
787 | MainConsole.Instance.OutputFormat( | 798 | MainConsole.Instance.Output( |
788 | "Discard AgentUpdates now {0} for {1}", m_udpServer.DiscardInboundAgentUpdates, m_udpServer.Scene.Name); | 799 | "Discard AgentUpdates now {0} for {1}", null, m_udpServer.DiscardInboundAgentUpdates, m_udpServer.Scene.Name); |
789 | } | 800 | } |
790 | 801 | ||
791 | private void HandleStatusCommand(string module, string[] args) | 802 | private void HandleStatusCommand(string module, string[] args) |
@@ -793,14 +804,14 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
793 | if (SceneManager.Instance.CurrentScene != null && SceneManager.Instance.CurrentScene != m_udpServer.Scene) | 804 | if (SceneManager.Instance.CurrentScene != null && SceneManager.Instance.CurrentScene != m_udpServer.Scene) |
794 | return; | 805 | return; |
795 | 806 | ||
796 | MainConsole.Instance.OutputFormat( | 807 | MainConsole.Instance.Output( |
797 | "IN LLUDP packet processing for {0} is {1}", m_udpServer.Scene.Name, m_udpServer.IsRunningInbound ? "enabled" : "disabled"); | 808 | "IN LLUDP packet processing for {0} is {1}", null, m_udpServer.Scene.Name, m_udpServer.IsRunningInbound ? "enabled" : "disabled"); |
798 | 809 | ||
799 | MainConsole.Instance.OutputFormat( | 810 | MainConsole.Instance.Output( |
800 | "OUT LLUDP packet processing for {0} is {1}", m_udpServer.Scene.Name, m_udpServer.IsRunningOutbound ? "enabled" : "disabled"); | 811 | "OUT LLUDP packet processing for {0} is {1}", null, m_udpServer.Scene.Name, m_udpServer.IsRunningOutbound ? "enabled" : "disabled"); |
801 | 812 | ||
802 | MainConsole.Instance.OutputFormat( | 813 | MainConsole.Instance.Output( |
803 | "Packet debug level for new clients is {0}", m_udpServer.DefaultClientPacketDebugLevel); | 814 | "Packet debug level for new clients is {0}", null, m_udpServer.DefaultClientPacketDebugLevel); |
804 | } | 815 | } |
805 | 816 | ||
806 | private void HandleOqreCommand(string module, string[] args) | 817 | private void HandleOqreCommand(string module, string[] args) |
@@ -819,24 +830,25 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
819 | if (subCommand == "stop") | 830 | if (subCommand == "stop") |
820 | { | 831 | { |
821 | m_udpServer.OqrEngine.Stop(); | 832 | m_udpServer.OqrEngine.Stop(); |
822 | MainConsole.Instance.OutputFormat("Stopped OQRE for {0}", m_udpServer.Scene.Name); | 833 | MainConsole.Instance.Output("Stopped OQRE for {0}", null, m_udpServer.Scene.Name); |
823 | } | 834 | } |
824 | else if (subCommand == "start") | 835 | else if (subCommand == "start") |
825 | { | 836 | { |
826 | m_udpServer.OqrEngine.Start(); | 837 | m_udpServer.OqrEngine.Start(); |
827 | MainConsole.Instance.OutputFormat("Started OQRE for {0}", m_udpServer.Scene.Name); | 838 | MainConsole.Instance.Output("Started OQRE for {0}", null, m_udpServer.Scene.Name); |
828 | } | 839 | } |
829 | else if (subCommand == "status") | 840 | else if (subCommand == "status") |
830 | { | 841 | { |
831 | MainConsole.Instance.OutputFormat("OQRE in {0}", m_udpServer.Scene.Name); | 842 | MainConsole.Instance.Output("OQRE in {0}", null, m_udpServer.Scene.Name); |
832 | MainConsole.Instance.OutputFormat("Running: {0}", m_udpServer.OqrEngine.IsRunning); | 843 | MainConsole.Instance.Output("Running: {0}", null, m_udpServer.OqrEngine.IsRunning); |
833 | MainConsole.Instance.OutputFormat( | 844 | MainConsole.Instance.Output( |
834 | "Requests waiting: {0}", | 845 | "Requests waiting: {0}", |
846 | null, | ||
835 | m_udpServer.OqrEngine.IsRunning ? m_udpServer.OqrEngine.JobsWaiting.ToString() : "n/a"); | 847 | m_udpServer.OqrEngine.IsRunning ? m_udpServer.OqrEngine.JobsWaiting.ToString() : "n/a"); |
836 | } | 848 | } |
837 | else | 849 | else |
838 | { | 850 | { |
839 | MainConsole.Instance.OutputFormat("Unrecognized OQRE subcommand {0}", subCommand); | 851 | MainConsole.Instance.Output("Unrecognized OQRE subcommand {0}", null, subCommand); |
840 | } | 852 | } |
841 | } | 853 | } |
842 | } | 854 | } |