PrintWriter printWriter = new PrintWriter(fstream);\r
printWriter.print(indentedretstring);\r
printWriter.close();\r
+ fstream.close();\r
\r
debugLogger.info("New Config successfully written to local file to " + configFile);\r
} catch (IOException e) {\r
file = ResourceUtils.getFile("classpath:" + configFileName);\r
content = new String(Files.readAllBytes(file.toPath()));\r
} catch (FileNotFoundException e) {\r
- errorLogger.error("colud not find file :", file.getName());\r
+ errorLogger.error("colud not find file :",configFileName);\r
\r
} catch (IOException e) {\r
errorLogger.error("unable to read the file , reason:", e.getCause());\r