You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@brooklyn.apache.org by he...@apache.org on 2021/06/16 14:11:02 UTC
[brooklyn-server] 03/06: Fix error reading multiline logs
This is an automated email from the ASF dual-hosted git repository.
heneveld pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/brooklyn-server.git
commit 3d5d7fa6d5bc91eee739a61f7f62c9c41fdee216
Author: Juan Cabrerizo <ju...@cloudsoft.io>
AuthorDate: Wed Jun 16 09:28:21 2021 +0100
Fix error reading multiline logs
---
.../java/org/apache/brooklyn/util/core/logbook/file/FileLogStore.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/core/src/main/java/org/apache/brooklyn/util/core/logbook/file/FileLogStore.java b/core/src/main/java/org/apache/brooklyn/util/core/logbook/file/FileLogStore.java
index cf94baf..d8ead81 100644
--- a/core/src/main/java/org/apache/brooklyn/util/core/logbook/file/FileLogStore.java
+++ b/core/src/main/java/org/apache/brooklyn/util/core/logbook/file/FileLogStore.java
@@ -137,7 +137,7 @@ public class FileLogStore implements LogStore {
Pattern p = Pattern.compile(this.logLinePattern);
Matcher m = p.matcher(logLine);
BrooklynLogEntry entry = new BrooklynLogEntry();
- assert m.find();
+ m.find();
if (m.matches()) {
entry.setTimestampString(m.group("timestamp"));
Maybe<Calendar> calendarMaybe = Time.parseCalendarFormat(entry.getTimestampString(), logDateFormat);