Archiviert
13
0

Make debug dump file names consistent (#9075)

Dieser Commit ist enthalten in:
powercas_gamer 2023-03-31 13:17:57 +02:00 committet von GitHub
Ursprung 11ab383e4f
Commit 7a96bf2095
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 4AEE18F83AFDEB23
2 geänderte Dateien mit 4 neuen und 4 gelöschten Zeilen

Datei anzeigen

@ -250,7 +250,7 @@ index 0000000000000000000000000000000000000000..f0fce4113fb07c64adbec029d177c236
+} +}
diff --git a/src/main/java/io/papermc/paper/command/subcommands/DumpPluginsCommand.java b/src/main/java/io/papermc/paper/command/subcommands/DumpPluginsCommand.java diff --git a/src/main/java/io/papermc/paper/command/subcommands/DumpPluginsCommand.java b/src/main/java/io/papermc/paper/command/subcommands/DumpPluginsCommand.java
new file mode 100644 new file mode 100644
index 0000000000000000000000000000000000000000..7159c72408f556d676eded668057a4c5ebb21719 index 0000000000000000000000000000000000000000..615902ac9fd341d6624d8fdb1c2ae6cc9abf9554
--- /dev/null --- /dev/null
+++ b/src/main/java/io/papermc/paper/command/subcommands/DumpPluginsCommand.java +++ b/src/main/java/io/papermc/paper/command/subcommands/DumpPluginsCommand.java
@@ -0,0 +1,200 @@ @@ -0,0 +1,200 @@
@ -313,7 +313,7 @@ index 0000000000000000000000000000000000000000..7159c72408f556d676eded668057a4c5
+ +
+ 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);

Datei anzeigen

@ -207,7 +207,7 @@ index 8f16640fc2f1233c10392d7e32a54d784fd8e370..1e9f191dc0f9d98f4404d2796f15b139
.flatMap(entry -> entry.getKey().stream().map(s -> Map.entry(s, entry.getValue()))) .flatMap(entry -> entry.getKey().stream().map(s -> Map.entry(s, entry.getValue())))
diff --git a/src/main/java/io/papermc/paper/command/subcommands/SyncLoadInfoCommand.java b/src/main/java/io/papermc/paper/command/subcommands/SyncLoadInfoCommand.java diff --git a/src/main/java/io/papermc/paper/command/subcommands/SyncLoadInfoCommand.java b/src/main/java/io/papermc/paper/command/subcommands/SyncLoadInfoCommand.java
new file mode 100644 new file mode 100644
index 0000000000000000000000000000000000000000..a73e35e7c71c1337c2846010b3ccd6875cae640e index 0000000000000000000000000000000000000000..95d6022c9cfb2e36ec5a71be6e34354027c2ec08
--- /dev/null --- /dev/null
+++ b/src/main/java/io/papermc/paper/command/subcommands/SyncLoadInfoCommand.java +++ b/src/main/java/io/papermc/paper/command/subcommands/SyncLoadInfoCommand.java
@@ -0,0 +1,88 @@ @@ -0,0 +1,88 @@
@ -273,7 +273,7 @@ index 0000000000000000000000000000000000000000..a73e35e7c71c1337c2846010b3ccd687
+ } + }
+ +
+ 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));
+ +