Skip to content

Commit

Permalink
Added logger for connectionService (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sahil-tarento authored Dec 5, 2023
1 parent d077e69 commit 7c61388
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ public Response findSuggestedConnectionsV2(String userId, int offset, int limit)
response.put(Constants.ResponseStatus.STATUS, HttpStatus.OK);

} catch (Exception e) {
logger.error("ConnectionService::findSuggestedConnectionsV2 " , e);
throw new ApplicationException(Constants.Message.FAILED_CONNECTION + e.getMessage());

}
Expand Down Expand Up @@ -166,6 +167,7 @@ public Response findAllConnectionsIdsByStatusV2(String userId, String status, in
response.put(Constants.ResponseStatus.STATUS, HttpStatus.OK);

} catch (Exception e) {
logger.error("ConnectionService::findAllConnectionsIdsByStatusV2 " , e);
throw new ApplicationException(Constants.Message.FAILED_CONNECTION + e.getMessage());
}

Expand All @@ -190,6 +192,7 @@ public Response findConnectionsRequestedV2(String userId, int offset, int limit,
response.put(Constants.ResponseStatus.STATUS, HttpStatus.OK);

} catch (Exception e) {
logger.error("ConnectionService::findConnectionsRequestedV2 " , e);
throw new ApplicationException(Constants.Message.FAILED_CONNECTION + e.getMessage());
}

Expand Down

0 comments on commit 7c61388

Please sign in to comment.