Log unknown event JEP-349-branch
authoregahlin
Mon, 21 Oct 2019 16:29:38 +0200
branchJEP-349-branch
changeset 58714 737134732b4a
parent 58687 222f727e9b05
child 58715 038d13489b6c
Log unknown event
src/jdk.jfr/share/classes/jdk/jfr/internal/consumer/ChunkParser.java
--- a/src/jdk.jfr/share/classes/jdk/jfr/internal/consumer/ChunkParser.java	Fri Oct 18 17:45:17 2019 +0200
+++ b/src/jdk.jfr/share/classes/jdk/jfr/internal/consumer/ChunkParser.java	Mon Oct 21 16:29:38 2019 +0200
@@ -252,8 +252,12 @@
                         return event;
                     }
                 }
-                if (typeId == 1 && flushOperation != null) { // checkpoint event
-                    parseCheckpoint();
+                if (typeId == 1) { // checkpoint event
+                    if (flushOperation != null) {
+                        parseCheckpoint();
+                    }
+                } else {
+                    Logger.log(LogTag.JFR_SYSTEM_PARSER, LogLevel.INFO, "Unknwon event type " + typeId);
                 }
             }
             input.position(pos + size);