1
0
mirror of synced 2026-01-26 19:51:56 +00:00

2006-08-18 13:10:37 by steve

More logging fixups.
This commit is contained in:
steve
2006-08-18 13:10:37 +00:00
parent e09ca7d528
commit ff57505e0a
2 changed files with 7 additions and 18 deletions

View File

@@ -446,7 +446,7 @@ Install an X11 server, using VNC and XDM
--
http://www.steve.org.uk/
$Id: xen-create-image,v 1.77 2006-08-18 13:09:24 steve Exp $
$Id: xen-create-image,v 1.78 2006-08-18 13:10:37 steve Exp $
=cut
@@ -926,7 +926,7 @@ sub parseCommandLineArguments
if ( $VERSION )
{
my $REVISION = '$Revision: 1.77 $';
my $REVISION = '$Revision: 1.78 $';
if ( $REVISION =~ /1.([0-9.]+) / )
{
@@ -1978,7 +1978,7 @@ sub runCommand
$CONFIG{'verbose'} && print "Executing : $cmd\n";
#
# Copy stderr to stdout, so we can see it, and make sure we &logprint it.
# Copy stderr to stdout, so we can see it, and make sure we log it.
#
$cmd .= " 2>&1 | tee --append /var/log/xen-tools/$CONFIG{'hostname'}.log";

View File

@@ -80,7 +80,7 @@ Install the distribution specified by the B<--dist> argument using the debootstr
--
http://www.steve.org.uk/
$Id: xt-install-image,v 1.27 2006-08-18 13:09:24 steve Exp $
$Id: xt-install-image,v 1.28 2006-08-18 13:10:37 steve Exp $
=cut
@@ -237,7 +237,7 @@ sub parseCommandLineArguments
if ( $VERSION )
{
my $REVISION = '$Revision: 1.27 $';
my $REVISION = '$Revision: 1.28 $';
if ( $REVISION =~ /1.([0-9.]+) / )
{
@@ -510,20 +510,9 @@ sub runCommand
$CONFIG{'verbose'} && print "Executing : $cmd\n";
#
# Hide output unless running with --debug.
# Copy stderr to stdout, so we can see it, and make sure we log it.
#
if ( $CONFIG{'verbose'} )
{
#
# Copy stderr to stdout, so we can see it.
#
$cmd .= " 2>&1";
}
else
{
$cmd .= " >/dev/null 2>/dev/null" ;
}
$cmd .= " 2>&1 | tee --append /var/log/xen-tools/$CONFIG{'hostname'}.log";
#
# Run it.