[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [OSSTEST PATCH 01/21] ts-hosts-allocate-Executive: with -U, just append to the same logfile
This is much more convenient for ad-hoc use. Signed-off-by: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx> --- ts-hosts-allocate-Executive | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/ts-hosts-allocate-Executive b/ts-hosts-allocate-Executive index dcfc70f2..3da138b1 100755 --- a/ts-hosts-allocate-Executive +++ b/ts-hosts-allocate-Executive @@ -75,16 +75,18 @@ sub setup () { $taskid= findtask(); - my $logbase = "hosts-allocate.debug".($compressdebug?".gz":""); - my $logfh = open_unique_stashfile \$logbase; + my $logbase = "hosts-allocate.debug"; if ($compressdebug) { + $logbase .= ".gz"; + my $logfh = open_unique_stashfile \$logbase; my $logchild = open DEBUG, "|-"; defined $logchild or die $!; if (!$logchild) { open STDOUT, ">&", $logfh or die $!; exec "gzip" or die $!; } } else { - open DEBUG, ">&", $logfh or die $!; + my $logfh = "$stash/$logbase"; + open DEBUG, ">>", $logfh or die $!; } DEBUG->autoflush(1); logm("host allocation debug log in $logbase"); -- 2.11.0 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |