X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=dbsrgits%2FDBIx-Class.git;a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FStorage.pm;h=a1c551e24b8757aacbb730815bf5b482b7833913;hp=f590b36bc26164999bac8170a67f5989e40b8795;hb=70f3927877ba6b7aac2565bc1933daaf82361308;hpb=e7827df02409b8e642cd68fca01de4a1c8fbb628 diff --git a/lib/DBIx/Class/Storage.pm b/lib/DBIx/Class/Storage.pm index f590b36..a1c551e 100644 --- a/lib/DBIx/Class/Storage.pm +++ b/lib/DBIx/Class/Storage.pm @@ -61,20 +61,11 @@ sub new { $new->set_schema($schema); $new->debugobj(new DBIx::Class::Storage::Statistics()); - my $fh; + #my $fh; my $debug_env = $ENV{DBIX_CLASS_STORAGE_DBI_DEBUG} || $ENV{DBIC_TRACE}; - if (defined($debug_env) && ($debug_env =~ /=(.+)$/)) { - $fh = IO::File->new($1, 'w') - or $new->throw_exception("Cannot open trace file $1"); - } else { - $fh = IO::File->new('>&STDERR'); - } - - $fh->autoflush(1); - $new->debugfh($fh); $new->debug(1) if $debug_env; $new;