Skip to content

Commit 542dd82

Browse files
avoid producing log errors when we know JFR isn't present
1 parent 19a60df commit 542dd82

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎dd-java-agent/agent-profiling/src/main/java/com/datadog/profiling/agent/ProfilingAgent.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public static synchronized void run(final boolean isStartingFirst, ClassLoader a
7070
"Profiling: API key doesn't match expected format, expected to get a 32 character hex string. Profiling is disabled.");
7171
return;
7272
}
73-
if (Platform.isJavaVersionAtLeast(9)) {
73+
if (Platform.isJavaVersionAtLeast(9) && Platform.hasJfr()) {
7474
JfrTimestampPatch.execute(agentClasLoader);
7575
}
7676

0 commit comments

Comments
 (0)