}
$class->setup_finalize;
-
- # Turn autoflush back off once setup is finished.
- # TODO: this is being done purely for Static::Simple (legacy API), and has been suggested by
- # mst to be removed and require/update Static::Simple to set this flag itself
- $class->log->autoflush(0) if ($class->log->can('autoflush'));
+
+ # Flush the log for good measure (in case something turned off 'autoflush' early)
+ $class->log->_flush() if $class->log->can('_flush');
return $class || 1; # Just in case someone named their Application 0...
}
unless ( $class->log ) {
$class->log( Catalyst::Log->new(keys %levels) );
}
-
- # Turn on autoflush by default:
- $class->log->autoflush(1) if ($class->log->can('autoflush'));
if ( $levels{debug} ) {
Class::MOP::get_metaclass_by_name($class)->add_method('debug' => sub { 1 });
Ulf Edvinsson
+vanstyn: Henry Van Styn <vanstyn@cpan.org>
+
Viljo Marrandi C<vilts@yahoo.com>
Will Hawes C<info@whawes.co.uk>