Debug Daemon.t failures.

This commit is contained in:
Daniel Nichter
2012-02-14 08:58:10 -07:00
parent 6bb7756c09
commit c943f7a0da
2 changed files with 14 additions and 2 deletions

View File

@@ -617,6 +617,14 @@ sub get_master_binlog_pos {
return $ms->{position};
}
sub _d {
my ($package, undef, $line) = caller 0;
@_ = map { (my $temp = $_) =~ s/\n/\n# /g; $temp; }
map { defined $_ ? $_ : 'undef' }
@_;
print STDERR "# $package:$line $PID ", join(' ', @_), "\n";
}
1;
}
# ###########################################################################