We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 666d3d8 + 9bf42f6 commit 635ad33Copy full SHA for 635ad33
src/main/java/com/github/theholywaffle/teamspeak3/log/LogHandler.java
@@ -29,12 +29,14 @@ public class LogHandler extends Handler {
29
30
public LogHandler(boolean debugToFile) {
31
this.debugToFile = debugToFile;
32
- log = new File("teamspeak.log");
33
- if (!log.exists()) {
34
- try {
35
- log.createNewFile();
36
- } catch (IOException e) {
37
- e.printStackTrace();
+ if(this.debugToFile) {
+ log = new File("teamspeak.log");
+ if (!log.exists()) {
+ try {
+ log.createNewFile();
+ } catch (IOException e) {
38
+ e.printStackTrace();
39
+ }
40
}
41
42
0 commit comments