Skip to content
Snippets Groups Projects
Commit 895117f4 authored by Andy Yates's avatar Andy Yates
Browse files

Removing IO::File and going back to the old ways

parent cd3d13a7
No related branches found
No related tags found
No related merge requests found
......@@ -13,7 +13,6 @@ use Getopt::Long;
use IO::Compress::Gzip qw/gzip $GzipError/;
use Pod::Usage;
use Sys::Hostname;
use IO::File;
my $PIGZ_BINARY = 'pigz';
my $PIGZ_PROCESSORS = 2; #ensdb-1-* only have 4 cores
......@@ -73,8 +72,7 @@ sub logging {
if ($o->{log}) {
$o->{verbose} = 1;
my $file = $o->{log};
my $fh = IO::File->new($file, 'w');
$fh->autoflush(1);
open my $fh, '>', $file or die "Cannot open log file '${file}' for writing: $!";
my $oldfh = select($fh);
$self->{oldfh} = $oldfh;
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment