From 84d5e1bedf1c3a3a55f98e9a6ac78328994ae765 Mon Sep 17 00:00:00 2001 From: Pascal Terjan Date: Sun, 13 Dec 2020 16:50:58 +0000 Subject: Add arch to all log files --- lib/Iurt/Process.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/Iurt') diff --git a/lib/Iurt/Process.pm b/lib/Iurt/Process.pm index 2d1c060..ea90a62 100644 --- a/lib/Iurt/Process.pm +++ b/lib/Iurt/Process.pm @@ -243,12 +243,12 @@ sub perform_command { my $retry = $opt{retry} || 1; my $call_ret = 1; my ($err, $try); - my $logfile = "$opt{log}/$opt{logname}.$run->{run}.log"; + my $logfile = "$opt{log}/$opt{logname}.$run->{my_arch}.$run->{run}.log"; my $max_retry = max($config->{max_command_retry}, $retry); while ($retry) { $try++; - $logfile = "$opt{log}/$opt{logname}-$try.$run->{run}.log" if $opt{retry} > 1; + $logfile = "$opt{log}/$opt{logname}-$try.$run->{my_arch}.$run->{run}.log" if $opt{retry} > 1; my $pid = $opt{log} ? fork_to_monitor($run, $config, $logfile, %opt) : 0; eval { -- cgit v1.2.1