Skip to content

Commit 76aedb4

Browse files
committed
only append, the create is in a step prior
1 parent 2f8f22b commit 76aedb4

File tree

1 file changed

+1
-2
lines changed
  • src/main/java/com/neuronrobotics/sdk/common

1 file changed

+1
-2
lines changed

src/main/java/com/neuronrobotics/sdk/common/Log.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -471,8 +471,7 @@ public void write(int b) throws IOException {
471471
String text = instance.incoming.asString();
472472
instance.incoming.clear();
473473
if (text != null && text.length() > 0){
474-
Files.writeString(logfile.toPath(), text, StandardCharsets.UTF_8,
475-
StandardOpenOption.CREATE, StandardOpenOption.APPEND);
474+
Files.writeString(logfile.toPath(), text, StandardCharsets.UTF_8, StandardOpenOption.APPEND);
476475
}
477476
text = null;
478477
} catch (Exception e) {

0 commit comments

Comments
 (0)