[Rt-commit] rt branch, 4.4/cli-statement-log, repushed
? sunnavy
sunnavy at bestpractical.com
Mon Sep 14 18:01:30 EDT 2020
The branch 4.4/cli-statement-log was deleted and repushed:
was 010bdb4ebda5ce88c154102fe17a1f8775fa30e3
now 4f2083525c218fc8462674203b70ba5f1a4b5495
1: 010bdb4ebd ! 1: 4f2083525c Add statement-log option to render statement logs in CLI
@@ -30,7 +30,11 @@
RT::Base->_ImportOverlays();
+END {
-+ RT::Interface::Web::LogRecordedSQLStatements( RequestData => { Path => '/' } ) if RT->Config->Get('StatementLog');
++
++ # When pod2usage is called(e.g. with --help), RT.pm won't be
++ # required and directly calling RT->Config will error out.
++ RT::Interface::Web::LogRecordedSQLStatements( RequestData => { Path => '/' } )
++ if RT->can('Config') && RT->Config->Get('StatementLog');
+}
+
1;
More information about the rt-commit
mailing list