mirror of
https://github.com/DiscordSRV/Ascension.git
synced 2025-01-15 20:31:43 +01:00
Fix writing to the wrong log file
This commit is contained in:
parent
67e25a765a
commit
9662d9515f
@ -72,7 +72,7 @@ public class DiscordSRVLogger implements Logger {
|
||||
List<Path> logs = new ArrayList<>(amount);
|
||||
for (int i = amount; i > 0; i--) {
|
||||
Path log = logsDirectory.resolve(String.format(LOG_FILE_NAME_FORMAT, label, i));
|
||||
logs.add(log);
|
||||
logs.add(0, log);
|
||||
if (!Files.exists(log)) {
|
||||
continue;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user