diff options
author | Justin Clark-Casey (justincc) | 2012-02-01 00:27:42 +0000 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2012-02-01 00:27:42 +0000 |
commit | 99e71222f05345d7c4e1658bf52b90087cad7ab7 (patch) | |
tree | 3fc7ea10df19e2cf61dfdd567ccd594708d327f4 /OpenSim/Region | |
parent | Add count of events queued for a particular script in "scripts show" console ... (diff) | |
download | opensim-SC-99e71222f05345d7c4e1658bf52b90087cad7ab7.zip opensim-SC-99e71222f05345d7c4e1658bf52b90087cad7ab7.tar.gz opensim-SC-99e71222f05345d7c4e1658bf52b90087cad7ab7.tar.bz2 opensim-SC-99e71222f05345d7c4e1658bf52b90087cad7ab7.tar.xz |
Lay out script status in property per row format, since getting too long for console lines.
Diffstat (limited to 'OpenSim/Region')
-rw-r--r-- | OpenSim/Region/ScriptEngine/XEngine/XEngine.cs | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs b/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs index 13c5cd9..f11987e 100644 --- a/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs +++ b/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs | |||
@@ -428,15 +428,21 @@ namespace OpenSim.Region.ScriptEngine.XEngine | |||
428 | status = "running"; | 428 | status = "running"; |
429 | } | 429 | } |
430 | 430 | ||
431 | StringBuilder sb = new StringBuilder(); | ||
431 | Queue eq = instance.EventQueue; | 432 | Queue eq = instance.EventQueue; |
432 | 433 | ||
434 | sb.AppendFormat("Script name : {0}\n", instance.ScriptName); | ||
435 | sb.AppendFormat("Status : {0}\n", status); | ||
436 | |||
433 | lock (eq) | 437 | lock (eq) |
434 | { | 438 | sb.AppendFormat("Queued events : {0}\n", eq.Count); |
435 | MainConsole.Instance.OutputFormat( | 439 | |
436 | "{0}.{1}, queued events = {2}, item UUID {3}, prim UUID {4} @ {5} ({6})", | 440 | sb.AppendFormat("Item UUID : {0}\n", instance.ItemID); |
437 | instance.PrimName, instance.ScriptName, eq.Count, instance.ItemID, instance.ObjectID, | 441 | sb.AppendFormat("Containing part name: {0}\n", instance.PrimName); |
438 | sop.AbsolutePosition, status); | 442 | sb.AppendFormat("Containing part UUID: {0}\n", instance.ObjectID); |
439 | } | 443 | sb.AppendFormat("Position : {0}\n", sop.AbsolutePosition); |
444 | |||
445 | MainConsole.Instance.OutputFormat(sb.ToString()); | ||
440 | } | 446 | } |
441 | 447 | ||
442 | private void HandleSuspendScript(IScriptInstance instance) | 448 | private void HandleSuspendScript(IScriptInstance instance) |