Skip to content

Commit

Permalink
[backend] bs_notifyforward: remove unwanted verbose option
Browse files Browse the repository at this point in the history
It was committed by mistake.
Also log the keepalive number after doing redis forwards.
  • Loading branch information
mlschroe committed Oct 24, 2023
1 parent e5c5120 commit 17e7469
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/backend/bs_notifyforward
Original file line number Diff line number Diff line change
Expand Up @@ -105,15 +105,18 @@ sub forwardredis {
'headers' => [ 'Content-Type: application/octet-stream' ],
'data' => BSUtil::tostorable($redisdata),
'keepalive' => $redis_keepalive,
'verbose' => 1,
};
eval { BSRPC::rpc($param, undef, 'keepalive=1') };
if ($@) {
%$redis_keepalive = ();
die($@);
}
markdone($markfd, $_) for @$markoffs;
print "forwarded ".@$markoffs." redis notifications\n";
if ($redis_keepalive->{'count'}) {
print "forwarded ".@$markoffs." redis notifications (keepalive count $redis_keepalive->{'count'})\n";
} else {
print "forwarded ".@$markoffs." redis notifications\n";
}
}

sub forwarddata {
Expand Down

0 comments on commit 17e7469

Please sign in to comment.