From 2a14a995bec380e4ea85f491eaaad1b7918a2bad Mon Sep 17 00:00:00 2001 From: ariannazafarana <112564573+ariannazafarana@users.noreply.github.com> Date: Tue, 14 Nov 2023 12:21:25 +0100 Subject: [PATCH] adds log --- .../history/cleanup/controller/SignalServiceController.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/it/pagopa/interop/signalhub/history/cleanup/controller/SignalServiceController.java b/src/main/java/it/pagopa/interop/signalhub/history/cleanup/controller/SignalServiceController.java index 877471f..3cff3a1 100644 --- a/src/main/java/it/pagopa/interop/signalhub/history/cleanup/controller/SignalServiceController.java +++ b/src/main/java/it/pagopa/interop/signalhub/history/cleanup/controller/SignalServiceController.java @@ -22,9 +22,9 @@ public void cleanSignal(){ try { signalService.cleanSignal(); }catch (PDNDBatchAlreadyExistException ex) { - log.info(ex.getMessage()); + log.error("An error occurred ", ex); } - + log.info("CleanSignal Ended: {}", dateTimeFormatter.format(LocalDateTime.now())); }