From bd020dc27b874726bf99f24375f4c7618961d95a Mon Sep 17 00:00:00 2001 From: tomas-sexenian Date: Fri, 19 Jan 2024 13:22:12 -0300 Subject: [PATCH 1/2] Log PDFReport.ini file not found error Issue: 106611 --- .../main/java/com/genexus/reports/GXReportPDFCommons.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/java/src/main/java/com/genexus/reports/GXReportPDFCommons.java b/java/src/main/java/com/genexus/reports/GXReportPDFCommons.java index d2f53098e..70ae2dd28 100644 --- a/java/src/main/java/com/genexus/reports/GXReportPDFCommons.java +++ b/java/src/main/java/com/genexus/reports/GXReportPDFCommons.java @@ -305,7 +305,10 @@ protected void loadPrinterSettingsProps(String iniFile, String form, String prin protected void loadProps() { try{ props = new ParseINI(configurationFile, configurationTemplateFile); - } catch(IOException e){ props = new ParseINI(); } + } catch(IOException e) { + log.error("Failed to load report configuration file " + configurationFile, e); + props = new ParseINI(); + } props.setupGeneralProperty(Const.PDF_REPORT_INI_VERSION_ENTRY, Const.PDF_REPORT_INI_VERSION); props.setupGeneralProperty(Const.EMBEED_SECTION, Const.EMBEED_DEFAULT); From b958848608474ae80ac9c6bf1c59caadd483edaf Mon Sep 17 00:00:00 2001 From: tomas-sexenian Date: Fri, 19 Jan 2024 14:21:38 -0300 Subject: [PATCH 2/2] Change log level --- java/src/main/java/com/genexus/reports/GXReportPDFCommons.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java/src/main/java/com/genexus/reports/GXReportPDFCommons.java b/java/src/main/java/com/genexus/reports/GXReportPDFCommons.java index 70ae2dd28..f6862c4a6 100644 --- a/java/src/main/java/com/genexus/reports/GXReportPDFCommons.java +++ b/java/src/main/java/com/genexus/reports/GXReportPDFCommons.java @@ -306,7 +306,7 @@ protected void loadProps() { try{ props = new ParseINI(configurationFile, configurationTemplateFile); } catch(IOException e) { - log.error("Failed to load report configuration file " + configurationFile, e); + log.warn("Failed to load report configuration file " + configurationFile, e); props = new ParseINI(); }