Skip to content

Commit

Permalink
Corrected logger messages.
Browse files Browse the repository at this point in the history
Signed-off-by: a-saksena <[email protected]>
  • Loading branch information
a-saksena committed Jul 24, 2024
1 parent fc75185 commit b27e31a
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -162,12 +162,13 @@ void getBlock(
final Optional<BlockStreamServiceGrpcProto.Block> responseBlock =
blockPersistenceHandler.read(block.getId());
if (responseBlock.isPresent()) {
LOGGER.log(System.Logger.Level.INFO, "SENDING BLOCK # " + block.getId());
complete(
responseObserver,
responseBlock.get()); // TODO: Should return int and not quoted string
LOGGER.log(System.Logger.Level.INFO, "Returning block with id: {0}", block.getId());
complete(responseObserver, responseBlock.get());
} else {
LOGGER.log(System.Logger.Level.INFO, "DID NOT FIND YOUR BLOCK");
LOGGER.log(
System.Logger.Level.INFO,
"Did not find your block with id: {0}",
block.getId());
responseObserver.onNext(
BlockStreamServiceGrpcProto.Block.newBuilder().setId(0).build());
}
Expand Down

0 comments on commit b27e31a

Please sign in to comment.