aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/Catalyst/TraitFor/Model
Commit message (Collapse)AuthorAgeLines
* Add debug toolbar middleware.Matthew Somerville2017-08-29-0/+128
If debug is enabled, using the CATALYST_DEBUG/FIXMYSTREET_APP_DEBUG environment variables, add a debug toolbar to the output, including request/response details and a database query log. This uses Plack middleware, so works by switching our dev server to use Starman with plack directly, rather than via the script runner. We remove the GZip compression as this interferes, and take a local copy of the QueryLog::AdoptPlack trait as it needs a tweak to work. Make sure the CSP header is not output in debug mode, as that would prevent the toolbar JavaScript from running.