Skip to content

Commit 2aa88ec

Browse files
committed
Fixed file name/location handling.
1 parent 5b9eefb commit 2aa88ec

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

core/src/main/java/edu/wpi/grip/core/Main.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@ public static void main(String[] args) throws Exception {
2525
Handler fileHandler = null;//This will be our handler for the global logger
2626

2727
try {
28-
String filename = System.getProperty("user.home")+System.getProperty("file.separator")+"GRIP"+System.getProperty("file.separator")+"GRIP.log";
29-
fileHandler = new FileHandler(filename);//Log to the file "GRIPlogger.log"
28+
fileHandler = new FileHandler("%h/GRIP.log");//Log to the file "GRIPlogger.log"
3029

3130
globalLogger.addHandler(fileHandler);//Add the handler to the global logger
3231

ui/src/main/java/edu/wpi/grip/ui/Main.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@ public void start(Stage stage) {
3535
Handler fileHandler = null;//This will be our handler for the global logger
3636

3737
try {
38-
String filename = System.getProperty("user.home")+System.getProperty("file.separator")+"GRIP"+System.getProperty("file.separator")+"GRIP.log";
39-
fileHandler = new FileHandler(filename);//Log to the file "GRIPlogger.log"
38+
fileHandler = new FileHandler("%h/GRIP.log");//Log to the file "GRIP.log"
4039

4140
globalLogger.addHandler(fileHandler);//Add the handler to the global logger
4241

0 commit comments

Comments
 (0)