jcabrerizo commented on a change in pull request #1208:
URL: https://github.com/apache/brooklyn-server/pull/1208#discussion_r673807082



##########
File path: 
core/src/main/java/org/apache/brooklyn/util/core/logbook/file/FileLogStore.java
##########
@@ -200,4 +201,15 @@ protected BrooklynLogEntry parseLogLine(String logLine, 
AtomicInteger lineCount)
         }
         return entry;
     }
+
+    public static boolean containsSearchPhrases(String logMessage, 
List<String> searchPhrases) {
+        boolean found = true;
+        for (String searchPhrase : searchPhrases) {
+            if (!logMessage.contains(searchPhrase)) {
+                found = false;

Review comment:
       May returning here `false` makes the code more readable




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@brooklyn.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to