X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=lib%2FCatalyst%2FLog.pm;h=b035d893914f8b89977a4db102926256a5ebe0be;hp=543e30f968331fe214401396218cc67498c6a48c;hb=d0cacee71a316290bc01f0e12681c16bdc1e84e2;hpb=536bee890cf24e0e4bcda7562e7b70cc03ca0620 diff --git a/lib/Catalyst/Log.pm b/lib/Catalyst/Log.pm index 543e30f..b035d89 100644 --- a/lib/Catalyst/Log.pm +++ b/lib/Catalyst/Log.pm @@ -5,6 +5,7 @@ with 'MooseX::Emulate::Class::Accessor::Fast'; use Data::Dump; use Class::MOP (); +use Carp qw/ cluck /; our %LEVELS = (); # Levels stored as bit field, ergo debug = 1, warn = 2 etc our %LEVEL_MATCH = (); # Stored as additive, thus debug = 31, warn = 30 etc @@ -77,8 +78,12 @@ sub disable { $self->level($level); } +our $HAS_DUMPED; sub _dump { my $self = shift; + unless ($HAS_DUMPED++) { + cluck("Catalyst::Log::_dump is deprecated and will be removed. Please change to using your own Dumper.\n"); + } $self->info( Data::Dump::dump(@_) ); }