X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FStorage%2FStatistics.pm;h=7e491cd341fb23b1a686d1cccd91fcdfabbc4bff;hb=0c11ad0ee5c8407f6b87d6e15c62a1b445076dc0;hp=d4937d1932391deb3eeed718c4cd3d8838d8798a;hpb=c6fa3170af14483e9d749931642fdd3000baa28c;p=dbsrgits%2FDBIx-Class.git diff --git a/lib/DBIx/Class/Storage/Statistics.pm b/lib/DBIx/Class/Storage/Statistics.pm index d4937d1..7e491cd 100644 --- a/lib/DBIx/Class/Storage/Statistics.pm +++ b/lib/DBIx/Class/Storage/Statistics.pm @@ -4,6 +4,7 @@ use warnings; use base qw/DBIx::Class/; use IO::File; +use namespace::clean; __PACKAGE__->mk_group_accessors(simple => qw/callback _debugfh silence/); @@ -60,7 +61,7 @@ sub debugfh { my $debug_env = $ENV{DBIX_CLASS_STORAGE_DBI_DEBUG} || $ENV{DBIC_TRACE}; if (defined($debug_env) && ($debug_env =~ /=(.+)$/)) { - $fh = IO::File->new($1, 'w') + $fh = IO::File->new($1, 'a') or die("Cannot open trace file $1"); } else { $fh = IO::File->new('>&STDERR') @@ -201,12 +202,12 @@ sub query_end { 1; -=head1 AUTHORS +=head1 AUTHOR AND CONTRIBUTORS -Cory G. Watson +See L and L in DBIx::Class =head1 LICENSE -You may distribute this code under the same license as Perl itself. +You may distribute this code under the same terms as Perl itself. =cut