Permalink
Browse files

Add better logging to pg_upgrade checking.

  • Loading branch information...
1 parent 8a97eff commit 83834cceaea95ba42c03a1079a8c768782e32a6b @adunstan adunstan committed Dec 1, 2012
Showing with 13 additions and 0 deletions.
  1. +13 −0 PGBuild/Modules/TestUpgrade.pm
@@ -75,6 +75,19 @@ sub check
@checklog = `$cmd 2>&1`;
}
+ my @logfiles = glob("$self->{pgsql}/contrib/pg_upgrade/*.log");
+ foreach my $log (@logfiles)
+ {
+ my $fname = basename $log;
+ local $/ = undef;
+ my $handle;
+ open($handle,$log);
+ my $contents = <$handle>;
+ close($handle);
+ push(@checklog,"=========================== $fname ================\n",
+ $contents);
+ }
+
my $status = $? >>8;
main::writelog("check-pg_upgrade",\@checklog);

0 comments on commit 83834cc

Please sign in to comment.