aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Model/DB.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2017-08-29 17:10:32 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2017-08-29 17:10:32 +0100
commit07d3568a02b5efb4286bccd9f869c8e1605928b5 (patch)
tree85770a4d1d8745a06b3bb8849c5444bb200f5693 /perllib/FixMyStreet/App/Model/DB.pm
parent759b5ef970546c0a70fb4f8d051b1f6dd54e4d2d (diff)
parent77d4d7096a3f0f83e5c19260a320fd2b11455a48 (diff)
Merge branch 'some-dev-improvements'
Diffstat (limited to 'perllib/FixMyStreet/App/Model/DB.pm')
-rw-r--r--perllib/FixMyStreet/App/Model/DB.pm5
1 files changed, 5 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/App/Model/DB.pm b/perllib/FixMyStreet/App/Model/DB.pm
index ffd867485..db8e72c27 100644
--- a/perllib/FixMyStreet/App/Model/DB.pm
+++ b/perllib/FixMyStreet/App/Model/DB.pm
@@ -5,6 +5,7 @@ use strict;
use warnings;
use FixMyStreet;
+use Catalyst::Utils;
use Moose;
with 'Catalyst::Component::InstancePerContext';
@@ -13,6 +14,10 @@ __PACKAGE__->config(
schema_class => 'FixMyStreet::DB::Schema',
connect_info => sub { FixMyStreet::DB->schema->storage->dbh },
);
+__PACKAGE__->config(
+ traits => ['QueryLog::AdoptPlack'],
+)
+ if Catalyst::Utils::env_value( 'FixMyStreet::App', 'DEBUG' );
sub build_per_context_instance {
my ( $self, $c ) = @_;