mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-11 11:06:25 +00:00
added loggign.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@2151 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
8c5de76828
commit
6c7d0ce837
1 file changed
+4
@@ -16,6 +16,7 @@ import java.io.FileInputStream;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStreamReader;
|
||||
import java.io.Reader;
|
||||
import java.util.logging.Logger;
|
||||
|
||||
/**
|
||||
* Represents an XML data file that Hudson uses as a data file.
|
||||
@@ -87,6 +88,7 @@ public final class XmlFile {
|
||||
* Loads the contents of this file into a new object.
|
||||
*/
|
||||
public Object read() throws IOException {
|
||||
LOGGER.fine("Reading "+file);
|
||||
Reader r = new BufferedReader(new InputStreamReader(new FileInputStream(file), "UTF-8"));
|
||||
try {
|
||||
return xs.fromXML(r);
|
||||
@@ -148,4 +150,6 @@ public final class XmlFile {
|
||||
* {@link XStream} instance is supposed to be thread-safe.
|
||||
*/
|
||||
private static final XStream DEFAULT_XSTREAM = new XStream2();
|
||||
|
||||
private static final Logger LOGGER = Logger.getLogger(XmlFile.class.getName());
|
||||
}
|
||||
Reference in new issue
Block a user