Fix LatencyReport vulnerabilities 27/68827/1
authorRonan Keogh <ronan.keogh@ericsson.com>
Tue, 25 Sep 2018 10:34:44 +0000 (11:34 +0100)
committerRonan Keogh <ronan.keogh@ericsson.com>
Tue, 25 Sep 2018 10:34:48 +0000 (11:34 +0100)
Change-Id: Iacb4a78583de3faf5a965e2476267516295fa983
Signed-off-by: Ronan Keogh <ronan.keogh@ericsson.com>
Issue-ID: DMAAP-775

datarouter-prov/src/main/java/org/onap/dmaap/datarouter/reports/LatencyReport.java

index 549511b..f500140 100644 (file)
@@ -180,7 +180,7 @@ public class LatencyReport extends ReportBase {
         } catch (FileNotFoundException e) {\r
             System.err.println("File cannot be written: " + outfile);\r
         } catch (SQLException e) {\r
-            e.printStackTrace();\r
+            logger.error("SQLException: " + e.getMessage());\r
         }\r
         logger.debug("Query time: " + (System.currentTimeMillis() - start) + " ms");\r
     }\r