[Rt-commit] rt branch, query-logging, updated. rt-3.9.4-56-ge5c2021
Shawn Moore
sartak at bestpractical.com
Wed Sep 29 20:44:17 EDT 2010
The branch, query-logging has been updated
via e5c2021a096ce4965d2adcd8977e7258fdbba91a (commit)
from e6dbd80ab74c83dfaa23d4b89f572875741aaeb4 (commit)
Summary of changes:
share/html/Elements/Footer | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
- Log -----------------------------------------------------------------
commit e5c2021a096ce4965d2adcd8977e7258fdbba91a
Author: Shawn M Moore <sartak at bestpractical.com>
Date: Wed Sep 29 20:45:11 2010 -0400
Display SQL queries in a comment in the footer of each page
But only if you have StatementLog on and are a superuser
diff --git a/share/html/Elements/Footer b/share/html/Elements/Footer
index d221a66..195f1bd 100755
--- a/share/html/Elements/Footer
+++ b/share/html/Elements/Footer
@@ -76,6 +76,15 @@
</pre>
% }
+% if (RT->Config->Get('StatementLog') && $session{'CurrentUser'}->HasRight( Object=> $RT::System, Right => 'SuperUser')) {
+<!--
+SQL queries:
+% for my $statement ($RT::Handle->SQLStatementLog) {
+% my ( $time, $sql, $bind, $duration ) = @$statement;
+<% sprintf '%0.4f', $duration %> - <% $RT::Handle->FillIn($sql, $bind) %>
+% }
+-->
+% }
</body>
</html>
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list