[Catalyst-dev] [PATCH] redirect warn calls to log->warn

Jonathan Rockway jon at jrock.us
Mon Sep 11 01:58:22 CEST 2006


This patch will catch calls to warn() and log them (via $c->log) as
warnings.  (Possibilities include filtering out spurious warnings in a
C::Log subclass, logging warnings to a database, etc.)

Here's the patch (with a live test and the necessary support code):

-------------- next part --------------
A non-text attachment was scrubbed...
Name: warn.patch
Type: text/x-patch
Size: 2571 bytes
Desc: not available
Url : http://lists.rawmode.org/pipermail/catalyst-dev/attachments/20060910/4e51ecd8/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 370 bytes
Desc: OpenPGP digital signature
Url : http://lists.rawmode.org/pipermail/catalyst-dev/attachments/20060910/4e51ecd8/attachment.pgp 


More information about the Catalyst-dev mailing list