Skip to content

Commit

Permalink
Logging XmlFile write to help track race conditions during tests. (#8513
Browse files Browse the repository at this point in the history
)
  • Loading branch information
Vlatombe authored Sep 26, 2023
1 parent 6485e25 commit 77e6e4d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/src/main/java/hudson/XmlFile.java
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,9 @@ private Object unmarshal(Object o, boolean nullOut) throws IOException {
}

public void write(Object o) throws IOException {
if (LOGGER.isLoggable(Level.FINEST)) {
LOGGER.log(Level.FINEST, new Throwable(), () -> "Writing " + file);
}
mkdirs();
AtomicFileWriter w = force
? new AtomicFileWriter(file)
Expand Down

0 comments on commit 77e6e4d

Please # to comment.