File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
src/main/java/com/neuronrobotics/sdk/common Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -471,7 +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 (instance . log .toPath (), text , StandardCharsets .UTF_8 ,
474+ Files .writeString (logfile .toPath (), text , StandardCharsets .UTF_8 ,
475475 StandardOpenOption .CREATE , StandardOpenOption .APPEND );
476476 }
477477 text = null ;
@@ -486,6 +486,7 @@ public static void flush() {
486486 setOutStream (outStream );
487487 System .setOut (outStream );
488488 System .setErr (outStream );
489+ instance .log =null ;
489490 while (instance .incoming .size () > 0 ) {
490491 try {
491492 Thread .sleep (10 );
You can’t perform that action at this time.
0 commit comments