[Catalyst-commits] r6486 - in trunk/Catalyst-Plugin-Static-Simple:
. lib/Catalyst/Plugin/Static
andyg at dev.catalyst.perl.org
andyg at dev.catalyst.perl.org
Sat Jun 30 20:50:05 GMT 2007
Author: andyg
Date: 2007-06-30 20:50:04 +0100 (Sat, 30 Jun 2007)
New Revision: 6486
Modified:
trunk/Catalyst-Plugin-Static-Simple/Changes
trunk/Catalyst-Plugin-Static-Simple/lib/Catalyst/Plugin/Static/Simple.pm
Log:
Static::Simple: Support a less confusing way to enable logging
Modified: trunk/Catalyst-Plugin-Static-Simple/Changes
===================================================================
--- trunk/Catalyst-Plugin-Static-Simple/Changes 2007-06-24 15:54:50 UTC (rev 6485)
+++ trunk/Catalyst-Plugin-Static-Simple/Changes 2007-06-30 19:50:04 UTC (rev 6486)
@@ -1,4 +1,9 @@
Revision history for Perl extension Catalyst::Plugin::Static::Simple
+
+0.18
+ - Logging may now be enabled with the less confusing
+ MyApp->config->{static}->{logging} = 1;
+
0.17 2007-05-11 11:00:00
- Added serve_static_file, to serve a given file as static. (groditi)
Modified: trunk/Catalyst-Plugin-Static-Simple/lib/Catalyst/Plugin/Static/Simple.pm
===================================================================
--- trunk/Catalyst-Plugin-Static-Simple/lib/Catalyst/Plugin/Static/Simple.pm 2007-06-24 15:54:50 UTC (rev 6485)
+++ trunk/Catalyst-Plugin-Static-Simple/lib/Catalyst/Plugin/Static/Simple.pm 2007-06-30 19:50:04 UTC (rev 6486)
@@ -8,7 +8,7 @@
use IO::File ();
use MIME::Types ();
-our $VERSION = '0.17';
+our $VERSION = '0.18';
__PACKAGE__->mk_accessors( qw/_static_file _static_debug_message/ );
@@ -92,6 +92,7 @@
$config->{ignore_dirs} ||= [];
$config->{debug} ||= $c->debug;
$config->{no_logs} = 1 unless defined $config->{no_logs};
+ $config->{no_logs} = 0 if $config->{logging};
# load up a MIME::Types object, only loading types with
# at least 1 file extension
@@ -322,7 +323,7 @@
default; static requests tend to clutter the log output and rarely
reveal anything useful. However, if you want to enable logging of static
requests, you can do so by setting
-C<MyApp-E<gt>config-E<gt>{static}-E<gt>{no_logs}> to 0.
+C<MyApp-E<gt>config-E<gt>{static}-E<gt>{logging}> to 1.
=head2 Forcing directories into static mode
More information about the Catalyst-commits
mailing list