[Catalyst] Why does $c->stats require -Debug flag?
Richard Jones
ra.jones at dpw.clara.co.uk
Sun Apr 13 15:35:51 BST 2008
Jon Schutz wrote:
> Following the example in the blog post, the solution is to set -Stats
> and change your Root::end() method to something like:
>
> @report = $stats->report;
> $c->stash->{'action_stats'} = \@report;
>
> and then adjust your template as now you're getting an array of arrays
> rather than an array of hashrefs.
>
Thanks, it's sort of working now, but I still need to run the server in
debug mode even with the -Stats flag, either by setting -Debug in my
main app.pm, or by starting the server with the -d flag, otherwise
$c->stats->report is undefined. Nearly there?
--
Richard Jones
More information about the Catalyst
mailing list