X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FStorage%2FStatistics.pm;h=eb536cd1a17572dff3a1810a902ce364b146a04c;hb=bfec318fdd1beb78915622f6187afc63275c356e;hp=714c8fb08834c76cd4a37447576e90d1eecd9d8d;hpb=9c1700e39e6ee002d9294c0d988882d1f0d7d86f;p=dbsrgits%2FDBIx-Class.git diff --git a/lib/DBIx/Class/Storage/Statistics.pm b/lib/DBIx/Class/Storage/Statistics.pm index 714c8fb..eb536cd 100644 --- a/lib/DBIx/Class/Storage/Statistics.pm +++ b/lib/DBIx/Class/Storage/Statistics.pm @@ -61,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')