From 78128bc63b4005bdaa7fc823f6da4c678c6be3fe Mon Sep 17 00:00:00 2001 From: szymon Date: Thu, 17 Jun 2021 22:17:55 +0200 Subject: [PATCH] Slightly beeter logs --- .../textile_backup/commands/manage/ListBackupsCommand.java | 2 +- .../core/create/compressors/AbstractCompressor.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/net/szum123321/textile_backup/commands/manage/ListBackupsCommand.java b/src/main/java/net/szum123321/textile_backup/commands/manage/ListBackupsCommand.java index 076770e..2deb6d8 100644 --- a/src/main/java/net/szum123321/textile_backup/commands/manage/ListBackupsCommand.java +++ b/src/main/java/net/szum123321/textile_backup/commands/manage/ListBackupsCommand.java @@ -40,7 +40,7 @@ public class ListBackupsCommand { } else { backups.sort(null); Iterator iterator = backups.iterator(); - builder.append("Available backups: "); + builder.append("Available backups:\n"); builder.append(iterator.next()); diff --git a/src/main/java/net/szum123321/textile_backup/core/create/compressors/AbstractCompressor.java b/src/main/java/net/szum123321/textile_backup/core/create/compressors/AbstractCompressor.java index 87b9b5c..a4634d0 100644 --- a/src/main/java/net/szum123321/textile_backup/core/create/compressors/AbstractCompressor.java +++ b/src/main/java/net/szum123321/textile_backup/core/create/compressors/AbstractCompressor.java @@ -45,10 +45,10 @@ public abstract class AbstractCompressor { .filter(File::isFile) .forEach(file -> { try { - //hopefully bad broken file won't spoil the whole archive + //hopefully one broken file won't spoil the whole archive addEntry(file, inputFile.toPath().relativize(file.toPath()).toString(), arc); } catch (IOException e) { - Statics.LOGGER.error("An exception occurred while trying to compress: {}", file.getName(), e); + Statics.LOGGER.error("An exception occurred while trying to compress: {}", inputFile.toPath().relativize(file.toPath()).toString(), e); if (ctx.getInitiator() == ActionInitiator.Player) Statics.LOGGER.sendError(ctx, "Something went wrong while compressing files!");