Skip to content

Commit

Permalink
fix(file): add append false on filewriter
Browse files Browse the repository at this point in the history
Signed-off-by: Rafa Hernandez <rhernandez@teclib.com>
  • Loading branch information
rafaelje authored and Hector Rondon committed Apr 28, 2018
1 parent fd013a2 commit 68427e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inventory/src/main/java/org/flyve/inventory/Utils.java
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ public static void storeFile(Context context, String message, String filename) {

try {
//BufferedWriter for performance, true to set append to file flag
fw = new FileWriter(logFile, true);
fw = new FileWriter(logFile, false);
BufferedWriter buf = new BufferedWriter(fw);

buf.write(message);
Expand Down

0 comments on commit 68427e6

Please sign in to comment.