Skip to content

Commit f53d4d4

Browse files
author
FungY911
committed
Fix logs
1 parent 0f7c939 commit f53d4d4

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/main/java/tk/fungy/wsformc/FileManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public class FileManager {
1313
public static File configFile = new File(Main.instance.getDataFolder(), "config.yml");
1414
public static File webFolder = new File(Main.instance.getDataFolder(), "web");
1515
public static File logsFolder = new File(Main.instance.getDataFolder(), "logs");
16-
public static File logsFile = new File(Main.instance.getDataFolder(), "logs/access.log");
16+
public static File logsFile = new File(Main.instance.getDataFolder(), "/logs/access.log");
1717
public static YamlConfiguration config;
1818
public static String ipaddr;
1919
public boolean getBooleanFromConfig(String b) { return Boolean.parseBoolean(config.getString(String.valueOf(b))); }

src/main/java/tk/fungy/wsformc/WebServer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public WebServer(String hostname, int port) {
2424
private File logFile;
2525
public WebServer() {
2626
super(port);
27-
logFile = new File(Main.instance.getDataFolder() + "/logs/latest.log");
27+
logFile = new File(Main.instance.getDataFolder() + "/logs/access.log");
2828
}
2929
//TODO:
3030
//TODO: FIX TOGGLE V CONFIGU A CHATE ATD..

src/main/resources/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
########################################################################
2828
WebServer:
2929
port: 8080 # Set this to your open port
30-
isRunning: true # For effect you need to reload plugin
30+
isRunning: false # For effect you need to reload plugin
3131
domain: "CHANGE_ME" # Domain of your server, default is ip of your server.
3232
ssl: false # toggle: true/false, set this to true only if you have generated certificate and webserver pointed to domain
3333

0 commit comments

Comments
 (0)