Commit bdb6cedf authored by Maurice Hendrix's avatar Maurice Hendrix
Browse files

-q commit -m "added option nolog\n-nolog 1 will dump the output to stdout

parent 44c16a1f
...@@ -118,6 +118,7 @@ sub parse_common_options { ...@@ -118,6 +118,7 @@ sub parse_common_options {
'pass|dbpass|db_pass=s', 'pass|dbpass|db_pass=s',
'conffile|conf=s', 'conffile|conf=s',
'logfile|log=s', 'logfile|log=s',
'nolog|nolog=s',
'logpath=s', 'logpath=s',
'logappend|log_append=s', 'logappend|log_append=s',
'verbose|v=s', 'verbose|v=s',
...@@ -162,7 +163,7 @@ sub parse_common_options { ...@@ -162,7 +163,7 @@ sub parse_common_options {
if (not (defined($self->param('logpath')))){ if (not (defined($self->param('logpath')))){
$self->param('logpath', "/ensemblweb/vega_dev/shared/logs/conversion/".$self->param('dbname')."/" ); $self->param('logpath', "/ensemblweb/vega_dev/shared/logs/conversion/".$self->param('dbname')."/" );
} }
if (not (defined($self->param('logfile')))){ if ( (not defined $self->param('logfile') ) && (not defined $self->param('nolog') ) ){
my $log = $Script; my $log = $Script;
$log =~ s/.pl//g; $log =~ s/.pl//g;
my $counter; my $counter;
...@@ -248,6 +249,7 @@ sub get_common_params { ...@@ -248,6 +249,7 @@ sub get_common_params {
port port
user user
pass pass
nolog
logpath logpath
logfile logfile
logappend logappend
......
Markdown is supported
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