diff --git a/core/src/main/java/hudson/XmlFile.java b/core/src/main/java/hudson/XmlFile.java index f03cd30d5e331e2367eb03572f4a8fe3b915d80f..df441c8fa31677d880184e88f88460b8c6d89871 100644 --- a/core/src/main/java/hudson/XmlFile.java +++ b/core/src/main/java/hudson/XmlFile.java @@ -52,10 +52,11 @@ import java.io.InputStreamReader; import java.io.Reader; import java.io.Writer; import java.io.StringWriter; +import java.util.logging.Level; import java.util.logging.Logger; /** - * Represents an XML data file that Hudson uses as a data file. + * Represents an XML data file that Jenkins uses as a data file. * * *

Evolving data format

@@ -124,7 +125,9 @@ public final class XmlFile { * Loads the contents of this file into a new object. */ public Object read() throws IOException { - LOGGER.fine("Reading "+file); + if (LOGGER.isLoggable(Level.FINE)) { + LOGGER.fine("Reading "+file); + } InputStream in = new BufferedInputStream(new FileInputStream(file)); try { return xs.fromXML(in);