diff --git a/src/main/java/net/unir/missi/desarrollowebfullstack/bookabook/operador/service/LoanService.java b/src/main/java/net/unir/missi/desarrollowebfullstack/bookabook/operador/service/LoanService.java index 5850872..7c408ee 100644 --- a/src/main/java/net/unir/missi/desarrollowebfullstack/bookabook/operador/service/LoanService.java +++ b/src/main/java/net/unir/missi/desarrollowebfullstack/bookabook/operador/service/LoanService.java @@ -75,6 +75,7 @@ public LoanResponse createLoan(LoanRequest request) { throw new BadParametersException("One or more parameters of the request are wrong", null); } + Logger.getGlobal().warning("hasta aki"); // If loan referencing non-existing books throw 404 if (! isExistingBook(loan.getBookId().toString())) { @@ -217,7 +218,7 @@ public List getLoansByClientId(Long clientId) { private boolean isExistingBook(String id) { try { ResponseEntity book = buscadorClient.getBook(id); - Logger.global.info("MyText"); + Logger.getGlobal().warning("MyText"); return book != null; } catch(Exception e) { @@ -228,7 +229,7 @@ private boolean isExistingBook(String id) { private boolean isExistingClient(String id) { try { ResponseEntity client = buscadorClient.getClient(id); - Logger.global.info("MyText"); + Logger.getGlobal().warning("MyText"); return client != null; } catch(Exception e) {