Changeset 182

Show
Ignore:
Timestamp:
09/07/10 15:01:29 (4 years ago)
Author:
depesz
Message:

Log whole response from pg_controldata in case there are problems with it

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/omnipitr/doc/changes.pod

    r179 r182  
    11=head1 OmniPITR 
     2 
     3=head2 2010-09-07 
     4 
     5=over 
     6 
     7=item * Log whole response from pg_controldata in case there are problems with it 
     8 
     9=back 
    210 
    311=head2 2010-07-28 
  • trunk/omnipitr/lib/OmniPITR/Program.pm

    r175 r182  
    186186    for my $line ( @lines ) { 
    187187        unless ( $line =~ m{\A([^:]+):\s*(.*)\z} ) { 
    188             $self->log->fatal( 'Pg_controldata for %s contained unparseable line: [%s]', $self->{ 'data-dir' }, $line ); 
     188            $self->log->fatal( 'Pg_controldata for %s contained unparseable line: [%s]. Full response: %s', $self->{ 'data-dir' }, $line, $response ); 
    189189        } 
    190190        $control_data->{ $1 } = $2; 
     
    192192 
    193193    unless ( $control_data->{ "Latest checkpoint's REDO location" } ) { 
    194         $self->log->fatal( 'Pg_controldata for %s did not contain latest checkpoint redo location', $self->{ 'data-dir' } ); 
     194        $self->log->fatal( 'Pg_controldata for %s did not contain latest checkpoint redo location. Full response: %s', $self->{ 'data-dir' }, $response ); 
    195195    } 
    196196    unless ( $control_data->{ "Latest checkpoint's TimeLineID" } ) { 
    197         $self->log->fatal( 'Pg_controldata for %s did not contain latest checkpoint timeline ID', $self->{ 'data-dir' } ); 
     197        $self->log->fatal( 'Pg_controldata for %s did not contain latest checkpoint timeline ID. Full response: %s', $self->{ 'data-dir' }, $response ); 
    198198    } 
    199199