[Catalyst] Why does $c->stats require -Debug flag?

Jon Schutz jon+catalyst at youramigo.com
Mon Apr 14 00:18:23 BST 2008


On Sun, 2008-04-13 at 15:35 +0100, Richard Jones wrote:
> 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?

Did you set the -Stats flag to a non-zero value? i.e.

 use Catalyst qw/-Stats=1/

-- 

Jon Schutz                        My tech notes http://notes.jschutz.net
Chief Technology Officer                        http://www.youramigo.com
YourAmigo         




More information about the Catalyst mailing list