changeset 58714:737134732b4a JEP-349-branch

Log unknown event
author egahlin
date Mon, 21 Oct 2019 16:29:38 +0200
parents 222f727e9b05
children 038d13489b6c
files src/jdk.jfr/share/classes/jdk/jfr/internal/consumer/ChunkParser.java
diffstat 1 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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);