mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-10-22 19:04:30 +00:00
Print OptionParser debug to STDERR.
This commit is contained in:
@@ -1342,12 +1342,12 @@ sub _d {
|
|||||||
# certainly include in all tools, but otherwise there's no real reason to put
|
# certainly include in all tools, but otherwise there's no real reason to put
|
||||||
# it here.
|
# it here.
|
||||||
if ( PTDEBUG ) {
|
if ( PTDEBUG ) {
|
||||||
print '# ', $^X, ' ', $], "\n";
|
print STDERR '# ', $^X, ' ', $], "\n";
|
||||||
if ( my $uname = `uname -a` ) {
|
if ( my $uname = `uname -a` ) {
|
||||||
$uname =~ s/\s+/ /g;
|
$uname =~ s/\s+/ /g;
|
||||||
print "# $uname\n";
|
print STDERR "# $uname\n";
|
||||||
}
|
}
|
||||||
print '# Arguments: ',
|
print STDERR '# Arguments: ',
|
||||||
join(' ', map { my $a = "_[$_]_"; $a =~ s/\n/\n# /g; $a; } @ARGV), "\n";
|
join(' ', map { my $a = "_[$_]_"; $a =~ s/\n/\n# /g; $a; } @ARGV), "\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user