From 87229a8628eb0022e3872db05ccf0efbdd06dc80 Mon Sep 17 00:00:00 2001 From: Gabriele Zigurella Date: Mon, 27 Feb 2023 12:43:59 +0100 Subject: [PATCH] chore: add log on catched exceptions --- .../WEB-INF/src/it/mwg/sismica/bo/util/SismicaUtil.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/util/SismicaUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/util/SismicaUtil.java index 655622cc..1aec819a 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/util/SismicaUtil.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/util/SismicaUtil.java @@ -1457,14 +1457,16 @@ public class SismicaUtil { IntPratica pratica = null; try { pratica = IntPraticaLocalServiceUtil.getIntPratica(documento.getIntPraticaId()); - } catch (PortalException e) {} + } catch (PortalException e) { + _log.error(e,e) + } if (Validator.isNotNull(pratica) && (documento.getFileEntryId() != 0)) { Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(pratica.getTerritorioId()); FileEntry fileEntry = null; try { fileEntry = DLAppServiceUtil.getFileEntry(documento.getFileEntryId()); } catch (Exception e) { - // _log.info(e.getClass() + ": " + e.getMessage()); + _log.error(e,e) } corretti += riparaPermessiFileEntry(companyId, territorio.getGroupId(), fileEntry, "Pratica " + pratica.getNumeroProgetto() + " (" + pratica.getIntPraticaId() + "), " + tipoDocumento