aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/at/knowcenter/wag/egov/egiz/tools/FileHelper.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/main/java/at/knowcenter/wag/egov/egiz/tools/FileHelper.java b/src/main/java/at/knowcenter/wag/egov/egiz/tools/FileHelper.java
index 50b7bad..e72e52e 100644
--- a/src/main/java/at/knowcenter/wag/egov/egiz/tools/FileHelper.java
+++ b/src/main/java/at/knowcenter/wag/egov/egiz/tools/FileHelper.java
@@ -50,18 +50,21 @@ public class FileHelper {
*/
public static String readFromFile(String fileName) {
String file_string = null;
+ logger_.trace("Looking for file: " + fileName);
try {
BufferedReader reader = new BufferedReader(new FileReader(fileName));
+ logger_.trace("Reading file: " + fileName);
String line = null;
file_string = "";
while ((line = reader.readLine()) != null) {
file_string += line;
}
reader.close();
+ logger_.debug("File successfully read: " + fileName);
} catch (FileNotFoundException e) {
- logger_.debug("File not found:" + fileName);
+ logger_.debug("File not found: " + fileName);
} catch (IOException e) {
- logger_.debug("File can not read:" + fileName);
+ logger_.debug("Error reading file: " + fileName);
}
return file_string;
}