From ed442765eff51d01b62657f48289837663cc991b Mon Sep 17 00:00:00 2001 From: Fabian Schlenz Date: Wed, 31 Aug 2016 07:05:00 +0200 Subject: [PATCH] Slightly modified log levels in DownloadManager. --- .../de/fabianonline/telegram_backup/DownloadManager.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/java/de/fabianonline/telegram_backup/DownloadManager.java b/src/main/java/de/fabianonline/telegram_backup/DownloadManager.java index c0977e7..ce01450 100644 --- a/src/main/java/de/fabianonline/telegram_backup/DownloadManager.java +++ b/src/main/java/de/fabianonline/telegram_backup/DownloadManager.java @@ -260,7 +260,8 @@ public class DownloadManager { FileOutputStream fos = null; try { String temp_filename = target + ".downloading"; - logger.debug("Temporary filename {}", temp_filename); + logger.debug("Downloading file {}", target); + logger.trace("Temporary filename: {}", temp_filename); int offset = 0; if (new File(temp_filename).isFile()) { @@ -272,7 +273,7 @@ public class DownloadManager { offset = 0; } } - logger.debug("offset before the loop is {}", offset); + logger.trace("offset before the loop is {}", offset); fos = new FileOutputStream(temp_filename, true); TLFile response; do { @@ -298,7 +299,7 @@ public class DownloadManager { new File(temp_filename).delete(); System.exit(1); } - logger.debug("Renaming {} to {}", temp_filename, target); + logger.trace("Renaming {} to {}", temp_filename, target); Files.move(new File(temp_filename).toPath(), new File(target).toPath(), StandardCopyOption.REPLACE_EXISTING); last_download_succeeded = true; return true;