13
0
geforkt von Mirrors/Paper

Make debug dump file names consistent (#9075)

Dieser Commit ist enthalten in:
powercas_gamer 2023-03-31 13:17:57 +02:00
Ursprung ee6a62f6b7
Commit bde53d9d44
2 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen

Datei anzeigen

@ -273,7 +273,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+ } + }
+ +
+ File file = new File(new File(new File("."), "debug"), + File file = new File(new File(new File("."), "debug"),
+ "sync-load-info" + FORMATTER.format(LocalDateTime.now()) + ".txt"); + "sync-load-info-" + FORMATTER.format(LocalDateTime.now()) + ".txt");
+ file.getParentFile().mkdirs(); + file.getParentFile().mkdirs();
+ sender.sendMessage(text("Writing sync load info to " + file, GREEN)); + sender.sendMessage(text("Writing sync load info to " + file, GREEN));
+ +

Datei anzeigen

@ -313,7 +313,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+ +
+ private void dumpPlugins(final CommandSender sender, final String[] args) { + private void dumpPlugins(final CommandSender sender, final String[] args) {
+ Path parent = Path.of("debug"); + Path parent = Path.of("debug");
+ Path path = parent.resolve("plugin-info" + FORMATTER.format(LocalDateTime.now()) + ".txt"); + Path path = parent.resolve("plugin-info-" + FORMATTER.format(LocalDateTime.now()) + ".txt");
+ try { + try {
+ Files.createDirectories(parent); + Files.createDirectories(parent);
+ Files.createFile(path); + Files.createFile(path);