[Catalyst] Debugging DBIC inside a catalyst app

Eric W. Bates ericx at vineyard.net
Thu Jun 22 16:03:12 CEST 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1



Ash Berlin wrote:
> Kevin Old wrote:
>> On 6/21/06, Eric W. Bates <ericx at vineyard.net> wrote:
>>   
>>> -----BEGIN PGP SIGNED MESSAGE-----
>>> Hash: SHA1
>>>
>>> I have read in the new Catalyst/Manual/Tutorial/CatalystBasics.pod (the
>>> whole tutorial is very nice, btw) that you can invoke DBIC's debugging
>>> inside your code thusly:
>>>
>>> $class->storage->debug(1);
>>>
...
>>>     
>> Eric,
>>
>> It also states above that Note that you can use the following
>> environmental variable to achieve the same effect.
>>
>> export DBIX_CLASS_STORAGE_DBI_DEBUG=1

Thanks, yah.  That I've done successfully.  I was hoping to flag the
debugging more discretely.  Bigger projects can just flood the hell out
of the log.

>> Kevin
>>   
> FYI Eric
> 
> You'd need to do it on the schema object directly, so 
> $c->model('HorshamDB')->storage->debug(1);

Thanks. Works great.

> Ash
> 
> 
> _______________________________________________
> List: Catalyst at lists.rawmode.org
> Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
> Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
> Dev site: http://dev.catalyst.perl.org/
> 
> 

- --
Eric W. Bates
ericx at vineyard.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEmqMgD1roJTQ4LlERApkGAKDAiyrr6ylSrKhnDBTt8Mwrqr3wxgCfR47H
FWbpRbwlQH5y9MwORXYi+Bk=
=DaIB
-----END PGP SIGNATURE-----



More information about the Catalyst mailing list