From f65c1430e55ae3509f7952cf30757675f2b462e8 Mon Sep 17 00:00:00 2001 From: EdwinBetanc0urt Date: Fri, 26 Jul 2024 22:41:00 -0400 Subject: [PATCH] feat: Add on recent items when generated/export report. --- .../controller/ReportService.java | 12 +++-- .../spin/report_engine/service/Service.java | 48 ++++++++++++++++++- 2 files changed, 56 insertions(+), 4 deletions(-) diff --git a/src/main/java/org/spin/report_engine/controller/ReportService.java b/src/main/java/org/spin/report_engine/controller/ReportService.java index 4c309d7..2284de0 100644 --- a/src/main/java/org/spin/report_engine/controller/ReportService.java +++ b/src/main/java/org/spin/report_engine/controller/ReportService.java @@ -38,10 +38,12 @@ public void getReport(GetReportRequest request, StreamObserver responseO responseObserver.onCompleted(); } catch (Exception e) { log.severe(e.getLocalizedMessage()); + e.printStackTrace(); responseObserver.onError(Status.INTERNAL .withDescription(e.getLocalizedMessage()) .withCause(e) - .asRuntimeException()); + .asRuntimeException() + ); } } @@ -53,10 +55,12 @@ public void getView(GetReportRequest request, StreamObserver responseObs responseObserver.onCompleted(); } catch (Exception e) { log.severe(e.getLocalizedMessage()); + e.printStackTrace(); responseObserver.onError(Status.INTERNAL .withDescription(e.getLocalizedMessage()) .withCause(e) - .asRuntimeException()); + .asRuntimeException() + ); } } @@ -68,10 +72,12 @@ public void runExport(RunExportRequest request, StreamObserver