Skip to content

Commit

Permalink
Properly account for RMQ reconnects in Push code, improve error message
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Doyle committed Jul 16, 2020
1 parent 8dd7227 commit 2d0dab7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/GRNOC/TSDS/DataService/Push.pm
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ sub add_data {

if (! $rabbit || ! $rabbit->is_connected()){
$self->_connect_rabbit() || return;
$rabbit = $self->{'rabbit'};
}

# If this user is limited to sending data for specific things,
Expand All @@ -163,7 +164,7 @@ sub add_data {
# detect error
if ( $@ ) {

$self->error( 'An error occurred publishing the data.' );
$self->error( 'An error occurred publishing the data: ' . $@);
return;
}

Expand Down

0 comments on commit 2d0dab7

Please sign in to comment.