1
0
mirror of https://github.com/LOOHP/Limbo.git synced 2026-06-07 21:41:43 +00:00

Fixed illegal file name in log files

Fixes #96
This commit is contained in:
LOOHP
2025-10-04 11:08:43 +01:00
parent 38f3c41bf5
commit 69d0270925
+1 -1
View File
@@ -86,7 +86,7 @@ public class Console implements CommandSender {
protected final PrintStream logs; protected final PrintStream logs;
public Console(InputStream in, PrintStream out, PrintStream err) throws IOException { public Console(InputStream in, PrintStream out, PrintStream err) throws IOException {
String fileName = new SimpleDateFormat("yyyy'-'MM'-'dd'_'HH'-'mm'-'ss'_'zzz'.log'").format(new Date()); String fileName = new SimpleDateFormat("yyyy'-'MM'-'dd'_'HH'-'mm'-'ss'_'zzz'.log'").format(new Date()).replace(":", "");
File dir = new File("logs"); File dir = new File("logs");
dir.mkdirs(); dir.mkdirs();
File logs = new File(dir, fileName); File logs = new File(dir, fileName);