Skip to content

Commit

Permalink
Use system logger instead of sout for logging
Browse files Browse the repository at this point in the history
  • Loading branch information
everflux committed Dec 23, 2020
1 parent 3848a08 commit 99c158d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/dev/morling/jfrunit/JfrEvents.java
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ void startRecordingEvents(String configurationName, List<EventConfiguration> ena
void stopRecordingEvents() {
try {
Path dumpDir = Files.createDirectories(Path.of(testMethod.getDeclaringClass().getProtectionDomain().getCodeSource().getLocation().toURI()).getParent().resolve("jfrunit"));
System.out.println("Stop recording: " + dumpDir.resolve(testMethod.getDeclaringClass().getName() + "-" + testMethod.getName() + ".jfr"));
LOGGER.log(Level.INFO, "Stop recording: " + dumpDir.resolve(testMethod.getDeclaringClass().getName() + "-" + testMethod.getName() + ".jfr"));
recording.stop();
recording.dump(dumpDir.resolve(testMethod.getDeclaringClass().getName() + "-" + testMethod.getName() + ".jfr"));
recording.close();
Expand Down

0 comments on commit 99c158d

Please sign in to comment.