[pve-devel] r5331 - vzdump/trunk

svn-commits at proxmox.com svn-commits at proxmox.com
Mon Dec 6 07:02:02 CET 2010


Author: dietmar
Date: 2010-12-06 07:02:02 +0100 (Mon, 06 Dec 2010)
New Revision: 5331

Modified:
   vzdump/trunk/ChangeLog
   vzdump/trunk/VZDump.pm
Log:


Modified: vzdump/trunk/ChangeLog
===================================================================
--- vzdump/trunk/ChangeLog	2010-12-06 05:59:17 UTC (rev 5330)
+++ vzdump/trunk/ChangeLog	2010-12-06 06:02:02 UTC (rev 5331)
@@ -1,5 +1,7 @@
 2010-12-06  Proxmox Support Team  <support at proxmox.com>
 
+	* VZDump.pm (debugmsg): never print to STDOUT (use STDERR instead)
+
 	* vzdump (print_usage): add new --stdout option (make sure that
 	nobody writes STDOUT by redirectind STDOUT to STDERR (saving old
 	STDOUT for later use)

Modified: vzdump/trunk/VZDump.pm
===================================================================
--- vzdump/trunk/VZDump.pm	2010-12-06 05:59:17 UTC (rev 5330)
+++ vzdump/trunk/VZDump.pm	2010-12-06 06:02:02 UTC (rev 5331)
@@ -76,7 +76,7 @@
     syslog ($mtype eq 'info' ? 'info' : 'err', "$pre $msg") if $syslog;
 
     foreach my $line (split (/\n/, $msg)) {
-	print "$pre $line\n";
+	print STDERR "$pre $line\n";
 	print $logfd "$timestr $pre $line\n" if $logfd;
     }
 }



More information about the pve-devel mailing list