diff --git a/modules/Bio/EnsEMBL/Utils/ConversionSupport.pm b/modules/Bio/EnsEMBL/Utils/ConversionSupport.pm index c82f6cea373341b159164efb54882c1e134698a3..63fc70e67ca3a90efb6988e2d4b401f8b9fe644a 100644 --- a/modules/Bio/EnsEMBL/Utils/ConversionSupport.pm +++ b/modules/Bio/EnsEMBL/Utils/ConversionSupport.pm @@ -155,8 +155,22 @@ sub parse_common_options { warning("Unable to open configuration file $conffile for reading: $!"); } - # override configured parameter with commandline options +# override configured parameter with commandline options map { $self->param($_, $h{$_}) } keys %h; + + # if logpath & logfile are not se, set them here to /ensemblweb/vega_dev/shared/logs/conversion/DBNAME/SCRIPNAME_NN.log + if (not (defined($self->param('logpath')))){ + $self->param('logpath', "/ensemblweb/vega_dev/shared/logs/conversion/".$self->param('dbname')."/" ); + } + if (not (defined($self->param('logfile')))){ + my $log = $Script; + $log =~ s/.pl//g; + my $counter; + for ($counter=1 ; (-e $self->param('logpath')."/".$log."_".sprintf("%03d", $counter).".log"); $counter++){ warn $self->param('logpath')."/".$log."_".$counter.".log";} + + $self->param('logfile', $log."_".sprintf("%03d", $counter).".log"); + } + return(1); }