mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2026-07-31 07:44:24 +02:00
Garmin: Improve activity fetch logging
This commit is contained in:
+13
@@ -840,7 +840,18 @@ public class GarminSupport extends AbstractBTLESingleDeviceSupport implements IC
|
||||
}
|
||||
|
||||
private void processDownloadQueue() {
|
||||
if (LOG.isTraceEnabled()) {
|
||||
LOG.trace(
|
||||
"Processing download queue - {} files to download, currentlyDownloading = {}, isBusyFetching = {}",
|
||||
filesToDownload.size(),
|
||||
currentlyDownloading != null,
|
||||
isBusyFetching
|
||||
);
|
||||
}
|
||||
|
||||
if (!filesToDownload.isEmpty() && currentlyDownloading == null) {
|
||||
LOG.debug("Processing next file of {}", filesToDownload.size());
|
||||
|
||||
if (!gbDevice.isBusy()) {
|
||||
LOG.debug("Starting download queue");
|
||||
|
||||
@@ -896,6 +907,8 @@ public class GarminSupport extends AbstractBTLESingleDeviceSupport implements IC
|
||||
}
|
||||
|
||||
if (filesToDownload.isEmpty() && currentlyDownloading == null && isBusyFetching) {
|
||||
LOG.debug("No more files to download, will process pending files");
|
||||
|
||||
final List<File> filesToProcess;
|
||||
try (DBHandler handler = GBApplication.acquireDB()) {
|
||||
final DaoSession session = handler.getDaoSession();
|
||||
|
||||
+2
-2
@@ -100,14 +100,14 @@ class GBProgressNotification(
|
||||
}
|
||||
|
||||
fun incrementTotalProgress(inc: Long) {
|
||||
LOG.debug("incrementTotalProgress id={}: {}", notificationId, inc)
|
||||
LOG.debug("incrementTotalProgress id={}: {} += {}", notificationId, totalProgress, inc)
|
||||
this.chunkProgress = 0
|
||||
this.totalProgress += inc
|
||||
refresh(false)
|
||||
}
|
||||
|
||||
fun incrementTotalSize(inc: Long) {
|
||||
LOG.debug("incrementTotalSize id={}: {}", notificationId, inc)
|
||||
LOG.debug("incrementTotalSize id={}: {}+={}", notificationId, totalSize, inc)
|
||||
this.totalSize += inc
|
||||
refresh(false)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user