From: Florian Ragwitz Date: Sun, 14 Feb 2010 11:30:23 +0000 (+0000) Subject: Make the debug log say the cat version with all its digits. X-Git-Tag: 5.80021~3 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=2f166b9e39b5e6ba1dfdf8b933c3be86f66e6cee;p=catagits%2FCatalyst-Runtime.git Make the debug log say the cat version with all its digits. --- diff --git a/lib/Catalyst.pm b/lib/Catalyst.pm index b8cced0..4d53a0d 100644 --- a/lib/Catalyst.pm +++ b/lib/Catalyst.pm @@ -79,6 +79,8 @@ __PACKAGE__->stats_class('Catalyst::Stats'); # Remember to update this in Catalyst::Runtime as well! our $VERSION = '5.80020'; +our $PRETTY_VERSION = $VERSION; + $VERSION = eval $VERSION; sub import { @@ -1144,7 +1146,7 @@ EOF if ( $class->debug ) { my $name = $class->config->{name} || 'Application'; - $class->log->info("$name powered by Catalyst $Catalyst::VERSION"); + $class->log->info("$name powered by Catalyst $Catalyst::PRETTY_VERSION"); } # Make sure that the application class becomes immutable at this point,