[Catalyst-dev] log filtering

Matt S Trout dbix-class at trout.me.uk
Fri Jan 27 19:28:57 CET 2006

On Fri, Jan 27, 2006 at 09:50:04AM -0800, Cory Bennett wrote:
> Hello!  I have recently started using Catalyst and I ran into a problem where 
> I want to supress part of a log statmement.  My site has a login page and so 
> when somone tries to login I see something like this in the logs:
> [Fri Jan 27 02:16:00 2006] [catalyst] [debug] Body Parameters are:
> .----------------------------+--------------------------.
> | Key                        | Value                    |
> +----------------------------+--------------------------+
> | password                   | foobar                   |
> | username                   | joeuser                  |
> '----------------------------+--------------------------'
> I am trying to figure out the best way to supress the password from being 
> logged, but still arrange so my controller has access to the raw password.

Erm, don't run production sites in debug mode?

     Matt S Trout       Offering custom development, consultancy and support
  Technical Director    contracts for Catalyst, DBIx::Class and BAST. Contact
Shadowcat Systems Ltd.  mst (at) shadowcatsystems.co.uk for more information

 + Help us build a better perl ORM: http://dbix-class.shadowcatsystems.co.uk/ +

More information about the Catalyst-dev mailing list