Skip to content

Commit

Permalink
Check logs for SEVERE messages as well
Browse files Browse the repository at this point in the history
  • Loading branch information
zakkak committed Oct 14, 2024
1 parent 62113f2 commit aeae97a
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
import java.util.Scanner;
import java.util.Set;
import java.util.regex.Pattern;
import java.util.stream.Collectors;

import static java.nio.charset.StandardCharsets.UTF_8;
import static java.nio.file.StandardCopyOption.REPLACE_EXISTING;
Expand All @@ -49,7 +48,7 @@
*/
public class Logs {
private static final Logger LOGGER = Logger.getLogger(Logs.class.getName());
private static final Pattern WARN_ERROR_DETECTION_PATTERN = Pattern.compile("(?i:.*(ERROR|WARN|No such file|Not found|unknown).*)");
private static final Pattern WARN_ERROR_DETECTION_PATTERN = Pattern.compile("(?i:.*(ERROR|SEVERE|WARN|No such file|Not found|unknown).*)");
public static final long SKIP = -1L;

public static void checkLog(String testClass, String testMethod, Apps app, File log) throws IOException {
Expand Down

0 comments on commit aeae97a

Please sign in to comment.