Skip to content

Commit

Permalink
Another attempt to fix log
Browse files Browse the repository at this point in the history
So it dynamically updateds on setFileURL
  • Loading branch information
shai-almog committed Oct 11, 2019
1 parent 2456558 commit 0e43dfa
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions CodenameOne/src/com/codename1/io/Log.java
Original file line number Diff line number Diff line change
Expand Up @@ -578,8 +578,12 @@ public String getFileURL() {
*/
public void setFileURL(String fileURL) {
if(Objects.equals(this.fileURL, fileURL)) {
this.fileURL = fileURL;
output = null;
try {
this.fileURL = fileURL;
output = createWriter();
} catch(IOException ex) {
ex.printStackTrace();
}
}
}

Expand Down

0 comments on commit 0e43dfa

Please sign in to comment.