[Rt-commit] rt branch, query-logging, updated. rt-3.9.4-41-g2b1b769
Shawn Moore
sartak at bestpractical.com
Wed Sep 29 18:36:53 EDT 2010
The branch, query-logging has been updated
via 2b1b7697563189cc03fd1219ffec635c12dced0f (commit)
from b23703c77c59ed8ec0c81517c1cb620a159fe34a (commit)
Summary of changes:
share/html/Admin/Tools/Queries.html | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
- Log -----------------------------------------------------------------
commit 2b1b7697563189cc03fd1219ffec635c12dced0f
Author: Shawn M Moore <sartak at bestpractical.com>
Date: Wed Sep 29 18:39:56 2010 -0400
If there's a trace, provide a toggle for displaying it
diff --git a/share/html/Admin/Tools/Queries.html b/share/html/Admin/Tools/Queries.html
index ab511bc..8e83a5d 100644
--- a/share/html/Admin/Tools/Queries.html
+++ b/share/html/Admin/Tools/Queries.html
@@ -93,13 +93,20 @@ unless ($session{'CurrentUser'}->HasRight( Object=> $RT::System, Right => 'Super
<tbody>
% my $s = 0;
% for my $statement (@{ $request->{Queries} }) {
-% my ( $time, $sql, $bind, $duration ) = @$statement;
+% my ( $time, $sql, $bind, $duration, $trace ) = @$statement;
% $sql = $RT::Handle->FillIn($sql, $bind);
<tr>
<td><% ++$s %></td>
<td><&|/l, sprintf('%.4f', $duration) &><i>[_1]s</i></&></td>
- <td><tt><% $sql %></tt></td>
+ <td>
+ <tt><% $sql %></tt>
+% if ($trace) {
+ <a href="#" onclick="return hideshow('trace-<%$r%>-<%$s%>');"><&|/l &>Toggle stack trace</&></a>
+ <pre id="trace-<%$r%>-<%$s%>" class="hidden"><% $trace %></pre>
+
+% }
+ </td>
</tr>
% }
</tbody>
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list