Skip to content

Commit d7308cb

Browse files
committed
dump logs in TAP-tests
1 parent 995648f commit d7308cb

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

contrib/mmts/Cluster.pm

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,18 @@ sub stop
208208
my $nodes = $self->{nodes};
209209
$mode = 'fast' unless defined $mode;
210210

211+
diag("Dumping logs:");
212+
foreach my $node (@$nodes) {
213+
diag("##################################################################");
214+
diag($node->{_logfile});
215+
diag("##################################################################");
216+
my $filename = $node->{_logfile};
217+
open my $fh, '<', $filename or die "error opening $filename: $!";
218+
my $data = do { local $/; <$fh> };
219+
diag($data);
220+
diag("##################################################################\n\n");
221+
}
222+
211223
my $ok = 1;
212224
diag("stopping cluster ${mode}ly");
213225

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy