summaryrefslogtreecommitdiffstats
path: root/LogParser/src
diff options
context:
space:
mode:
authorrb7147 <rb7147@att.com>2017-06-15 09:42:41 -0400
committerrb7147 <rb7147@att.com>2017-06-15 13:27:54 -0400
commita084c4de015521f842a3fef0d7f1f7c340237bc3 (patch)
tree0a3ca8266ee4f91cf246268d6b8b22722899c0ec /LogParser/src
parent685ed1545ed28b777a3ba6e7d315b78f355154cb (diff)
[Policy-8 ,Policy-23] Updated Matchid for policies
Commit includes Resolved Sonar blokcers Included the 1707 database scripts. Change-Id: I2ffdfce57e6dee0892b272b23283bf246204599a Signed-off-by: rb7147 <rb7147@att.com>
Diffstat (limited to 'LogParser/src')
-rw-r--r--LogParser/src/main/java/org/openecomp/xacml/parser/ParseLog.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/LogParser/src/main/java/org/openecomp/xacml/parser/ParseLog.java b/LogParser/src/main/java/org/openecomp/xacml/parser/ParseLog.java
index 443267309..5ddb623c0 100644
--- a/LogParser/src/main/java/org/openecomp/xacml/parser/ParseLog.java
+++ b/LogParser/src/main/java/org/openecomp/xacml/parser/ParseLog.java
@@ -144,7 +144,7 @@ public class ParseLog {
try (Stream<String> lines = Files.lines(debugfilePath, Charset.defaultCharset()).onClose(() -> log4jlogger.info("Last-"+dataFileName+"-line-Read:" + debuglastNumberRead)).skip(debuglastNumberRead)) {
lines.forEachOrdered(line -> process(line, type, LOGTYPE.DEBUG));
-
+ lines.close();
} catch (IOException e) {
logger.error("Error processing line in " + dataFileName + ":" + e);
logger.error("break the loop.");
@@ -210,7 +210,7 @@ public class ParseLog {
try (Stream<String> lines = Files.lines(errorfilePath, Charset.defaultCharset()).onClose(() -> log4jlogger.info("Last-"+dataFileName+"-line-Read:" + errorlastNumberRead)).skip(errorlastNumberRead)) {
lines.forEachOrdered(line -> process(line, type, LOGTYPE.ERROR));
-
+ lines.close();
} catch (IOException e) {
logger.error("Error processing line in " + dataFileName + ":" + e);
logger.error("break the loop.");
@@ -274,7 +274,7 @@ public class ParseLog {
try (Stream<String> lines = Files.lines(filePath, Charset.defaultCharset()).onClose(() -> log4jlogger.info("Last-"+dataFileName+"-line-Read:" + lastNumberRead)).skip(lastNumberRead)) {
lines.forEachOrdered(line -> process(line, type, LOGTYPE.INFO));
-
+ lines.close();
} catch (IOException e) {
logger.error("Error processing line in " + dataFileName + ":" + e);
logger.error("break the loop.");