From e11c593c7d21d9602fb951f32f6ced8b30a86254 Mon Sep 17 00:00:00 2001 From: Keuin Date: Wed, 10 Mar 2021 09:40:59 +0800 Subject: print detailed information if incremental backup fail due to an IO exception. --- .../operation/backup/method/ConfiguredIncrementalBackupMethod.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main/java/com/keuin/kbackupfabric/operation/backup/method/ConfiguredIncrementalBackupMethod.java') diff --git a/src/main/java/com/keuin/kbackupfabric/operation/backup/method/ConfiguredIncrementalBackupMethod.java b/src/main/java/com/keuin/kbackupfabric/operation/backup/method/ConfiguredIncrementalBackupMethod.java index 0c202e1..2cc0765 100644 --- a/src/main/java/com/keuin/kbackupfabric/operation/backup/method/ConfiguredIncrementalBackupMethod.java +++ b/src/main/java/com/keuin/kbackupfabric/operation/backup/method/ConfiguredIncrementalBackupMethod.java @@ -99,8 +99,8 @@ public class ConfiguredIncrementalBackupMethod implements ConfiguredBackupMethod PrintUtil.info("Incremental backup finished."); feedback = new IncrementalBackupFeedback(true, copyResult); } catch (IOException e) { - e.printStackTrace(); // at least we should print it out if we discard the exception... Better than doing nothing. - feedback = new IncrementalBackupFeedback(false, null); +// e.printStackTrace(); // stack trace has been passed to backup feedback. No need to print here. + feedback = new IncrementalBackupFeedback(e); } // do clean-up if failed -- cgit v1.2.3