[Catalyst] Re: Catalyst::Plugin::DBIC::QueryLog

Fayland Lam fayland at gmail.com
Tue Sep 4 02:19:31 GMT 2007


Matt S Trout wrote:
> On Sat, Sep 01, 2007 at 04:08:09AM +0000, Fayland Lam wrote:
>> hi, guys.
>>
>> since I can't touch Cory Watson by gphat at cpan.org <mailto:gphat at cpan.org>
>> so I wonder if this module is fine?
> 
> No, it's awful. There's no reason at all for this to be a plugin.
> 
> I'd suggest you make it a mixin for Catalyst::Model::DBIC::Schema instead.


but it depends on every request. it start at the sub prepare and end 
before finalize_body. due to my limited knowledge, I'm not sure if it's 
OK as a mixin for Catalyst::Model::DBIC::Schema


> 
> (otherwise how do you deal with two DBIC models each with their own
> querylog etc. etc.)

that's right. but there is more than one way to do it. :)

> 


-- 
Fayland Lam // http://www.fayland.org/



More information about the Catalyst mailing list