Garmin: Improve activity fetch logging

This commit is contained in:
José Rebelo
2026-03-07 13:06:58 +00:00
parent 422cb0eced
commit d0993353cf
2 changed files with 15 additions and 2 deletions
@@ -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();
@@ -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)
}