Skip to content

Commit

Permalink
backend: temporary consumer logging at **/units endpoint (correction)
Browse files Browse the repository at this point in the history
erik-a-e committed Nov 28, 2023
1 parent b2233c1 commit 717128d
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -77,6 +77,9 @@ public ResponseEntity<ResourceResponse> getById(@PathVariable String id) {
@GetMapping("/{id}/units")
public ResponseEntity<ResourceUnitsResponse> getUnitsById(@PathVariable String id) {
log.info("Resource get units id={}", id);

temporaryLogConsumer();

try {
var units = nomGraphClient.getUnits(id);
if (units.isEmpty()) {
@@ -95,8 +98,6 @@ public ResponseEntity<ResourceUnitsResponse> getUnitsById(@PathVariable String i
public ResponseEntity<RestResponsePage<ResourceResponse>> getById(@RequestBody List<String> ids) {
log.info("Resource get ids={}", ids);

temporaryLogConsumer();

var resources = ids.stream()
.map(nomClient::getByNavIdent)
.filter(Optional::isPresent)

0 comments on commit 717128d

Please sign in to comment.