X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FLog.pm;h=b035d893914f8b89977a4db102926256a5ebe0be;hb=345358ea4f3fa844dcd691a424014be10a6145bd;hp=751b2e43b54ac48dea7130948e2a5cc8003bf528;hpb=eaae9a9246b1c213dfd1fdff44f76c5c77562ab3;p=catagits%2FCatalyst-Runtime.git diff --git a/lib/Catalyst/Log.pm b/lib/Catalyst/Log.pm index 751b2e4..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(@_) ); } @@ -270,7 +275,7 @@ Catalyst Contributors, see Catalyst.pm =head1 COPYRIGHT -This program is free software, you can redistribute it and/or modify +This library is free software. You can redistribute it and/or modify it under the same terms as Perl itself. =cut