From ec599da68cac6349e7f28b508d8038c18a4e7347 Mon Sep 17 00:00:00 2001 From: Denghui Dong Date: Thu, 8 Apr 2021 08:11:43 +0000 Subject: [PATCH] 8264633: Add missing logging to PlatformRecording#stop Reviewed-by: egahlin --- .../share/classes/jdk/jfr/internal/PlatformRecording.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/jdk.jfr/share/classes/jdk/jfr/internal/PlatformRecording.java b/src/jdk.jfr/share/classes/jdk/jfr/internal/PlatformRecording.java index def3545b746..369657e8411 100644 --- a/src/jdk.jfr/share/classes/jdk/jfr/internal/PlatformRecording.java +++ b/src/jdk.jfr/share/classes/jdk/jfr/internal/PlatformRecording.java @@ -176,7 +176,8 @@ public final class PlatformRecording implements AutoCloseable { notifyIfStateChanged(newState, oldState); close(); // remove if copied out } catch(IOException e) { - // throw e; // BUG8925030 + Logger.log(LogTag.JFR, LogLevel.ERROR, + "Unable to complete I/O operation when dumping recording \"" + getName() + "\" (" + getId() + ")"); } } else { notifyIfStateChanged(newState, oldState);